[ https://issues.apache.org/jira/browse/CASSANDRA-9355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006616#comment-15006616 ]
Branimir Lambov commented on CASSANDRA-9355: -------------------------------------------- We only replay mutations up to the last correct sync header, mutations made after that will follow an empty or invalid sync header which is treated as an end marker. I think this was done to ensure we don't replay data from the previous write cycle on this segment when they were being reused. The test is not failing in 2.2 and later, because a sync is part of closing the segment during CommitLog shutdown. 2.1 will also sync once after shutdown is requested, but not during {{resetUnsafe}} as used by tests. Perhaps a more thorough solution is to include a sync (and wait for it to complete) as part of the latter? > RecoveryManagerTruncateTest fails in test-compression > ----------------------------------------------------- > > Key: CASSANDRA-9355 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9355 > Project: Cassandra > Issue Type: Bug > Components: Testing > Environment: 2.1 commit: ac70e37 > Reporter: Michael Shuler > Assignee: Ariel Weisberg > Fix For: 2.1.x > > Attachments: system.log > > > {noformat} > $ ant test-compression -Dtest.name=RecoveryManagerTruncateTest > ... > [junit] Testsuite: org.apache.cassandra.db.RecoveryManagerTruncateTest > [junit] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: > 9.221 sec > [junit] > [junit] Testcase: > testTruncatePointInTimeReplayList(org.apache.cassandra.db.RecoveryManagerTruncateTest): > FAILED > [junit] > [junit] junit.framework.AssertionFailedError: > [junit] at > org.apache.cassandra.db.RecoveryManagerTruncateTest.testTruncatePointInTimeReplayList(RecoveryManagerTruncateTest.java:159) > [junit] > [junit] > [junit] Test org.apache.cassandra.db.RecoveryManagerTruncateTest FAILED > {noformat} > system.log from just this failed test attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)