ambry icon indicating copy to clipboard operation
ambry copied to clipboard

BlobStoreCompactor test failure

Open cgtz opened this issue 7 years ago • 2 comments

Got the following test failure on the most recent travis build.

com.github.ambry.store.BlobStoreCompactorTest > interruptionDuringLastCommitTest FAILED
    java.lang.AssertionError: Last modified time of an older index segment > newer index segment
        at org.junit.Assert.fail(Assert.java:91)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at com.github.ambry.store.CuratedLogIndexState.verifyRealIndexSanity(CuratedLogIndexState.java:616)
        at com.github.ambry.store.CuratedLogIndexState.verifyState(CuratedLogIndexState.java:860)
        at com.github.ambry.store.CuratedLogIndexState.setupTestState(CuratedLogIndexState.java:766)
        at com.github.ambry.store.CuratedLogIndexState.<init>(CuratedLogIndexState.java:181)
        at com.github.ambry.store.BlobStoreCompactorTest.refreshState(BlobStoreCompactorTest.java:937)
        at com.github.ambry.store.BlobStoreCompactorTest.interruptionDuringLastCommitTest(BlobStoreCompactorTest.java:694)

cgtz avatar Jan 25 '18 17:01 cgtz

The compaction code has not run at this point. This happened during the setup of the test (create a log, index etc). I'll add some log messages but this seems super rare (this piece of code runs on the startup of every single index and compactor test), so its hard to repro. I'll also go through the index persistence code to spot any bugs.

vgkholla avatar Jan 25 '18 19:01 vgkholla

@cgtz #856

vgkholla avatar Jan 25 '18 19:01 vgkholla