[ https://issues.apache.org/jira/browse/CASSANDRA-9355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994117#comment-14994117 ]
Ariel Weisberg commented on CASSANDRA-9355: ------------------------------------------- Posted my comment that precedes the patch submission under CASSANDRA-9358 and also misnamed the branch. Will fix it. Here is the comment. Adding a commit log sync before reseting and restoring from PIT fixes this test. It's not super reproducible on my Linux box although it will happen in a loop. On OS X it fails pretty reliably. I am going to dig a little deeper into why a sync is necessary for the commit log contents to be usable. When it fails I see this in the log {code} [junit] WARN 17:32:49 Encountered bad header at position 16 of commit log /home/aweisberg/cassandra/build/test/cassandra/commitlog:0/CommitLog-4-1446831167254.log, with invalid CRC. The end of segment marker should be zero. [junit] WARN 17:32:49 Encountered bad header at position 16 of commit log /home/aweisberg/cassandra/build/test/cassandra/commitlog:0/CommitLog-4-1446831167254.log, with invalid CRC. The end of segment marker should be zero. {code} > 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)