apache / accumulo-proxy

Apache Accumulo Proxy
https://accumulo.apache.org
Apache License 2.0
9 stars 19 forks source link

SimpleProxyBase.testCompactionSelector should not be passing #71

Closed DomGarguilo closed 1 year ago

DomGarguilo commented 1 year ago

In 65fd1bbf2494b4ae0071ca99ce8740943a6df479 I pushed some changes to wrap the Wait.waitFor() blocks in the tests in assertTrue(). The Wait.waitFor() method will not fail on its own and simply returns a boolean which was being ignored in all of the tests, and still is being ignored in testCompactionSelector.

The condition in the test,

Wait.waitFor(() -> countFiles(tableName) == (expectedFileCount / 2));

checks to make sure that half of the files were compacted in accordance with the SelectHalfSelector being used in the test. After correctly checking the return value for this condition, it is evident that the selector is not working as intended and the number of files does not change after compaction.