Skip to content

Flaky test: GarbageCollectorTrashEnabledCustomPolicyIT #3487

@dlmarion

Description

@dlmarion

Test name(s)

  • GarbageCollectorTrashEnabledCustomPolicyIT.testTrashHadoopEnabledAccumuloEnabled

Describe the failure observed

[ERROR] org.apache.accumulo.test.functional.GarbageCollectorTrashEnabledCustomPolicyIT.testTrashHadoopEnabledAccumuloEnabled  Time elapsed: 18.113 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <false> but was: <true>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertFalse.failNotFalse(AssertFalse.java:63)
	at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:36)
	at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:31)
	at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:228)
	at org.apache.accumulo.test.functional.GarbageCollectorTrashEnabledCustomPolicyIT.testTrashHadoopEnabledAccumuloEnabled(GarbageCollectorTrashEnabledCustomPolicyIT.java:96)

Testing Environment:

  • Version of this project: 2.1.1-RC1

What have you tried already?
N/A

Additional context
This test passes on other machines, so it's likely a timing issue. Looking at the test, flush(tableName) is called two lines before.

c.tableOperations().flush(table);
ArrayList<StoredTabletFile> files1 = getFilesForTable(super.getServerContext(), c, table);
assertFalse(files1.isEmpty());

This version of flush does not wait for the flush to complete. Instead, I think that flush(tableName, null, null, true) should replace all occurrences of flush(tableName) in the new GarbageCollector tests.

Metadata

Metadata

Assignees

Labels

bugThis issue has been verified to be a bug.testAn issue pertaining to a test case

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions