Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14195

CommitLogSegmentManagerCDCTest is flaky

    XMLWordPrintableJSON

Details

    • Low

    Description

      This fails fairly reliably in CircleCI and in a few minutes if you run it in a loop on a MacOS laptop.

      I see two failures.

          [junit] Testcase: testRetainLinkOnDiscardCDC(org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest):	Caused an ERROR
          [junit] Rejecting mutation to keyspace cql_test_keyspace. Free up space in build/test/cassandra/cdc_raw:0 by processing CDC logs.
          [junit] org.apache.cassandra.exceptions.CDCWriteException: Rejecting mutation to keyspace cql_test_keyspace. Free up space in build/test/cassandra/cdc_raw:0 by processing CDC logs.
          [junit] 	at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.throwIfForbidden(CommitLogSegmentManagerCDC.java:136)
          [junit] 	at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDC.allocate(CommitLogSegmentManagerCDC.java:108)
          [junit] 	at org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:272)
          [junit] 	at org.apache.cassandra.db.Keyspace.applyInternal(Keyspace.java:604)
          [junit] 	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:481)
          [junit] 	at org.apache.cassandra.db.Mutation.apply(Mutation.java:191)
          [junit] 	at org.apache.cassandra.db.Mutation.apply(Mutation.java:196)
          [junit] 	at org.apache.cassandra.db.Mutation.apply(Mutation.java:205)
          [junit] 	at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest.testRetainLinkOnDiscardCDC(CommitLogSegmentManagerCDCTest.java:256)
      

      and

          [junit] Testcase: testCompletedFlag(org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest):	FAILED
          [junit] Index file not written: build/test/cassandra/cdc_raw:0/CommitLog-7-1517005121474_cdc.idx
          [junit] junit.framework.AssertionFailedError: Index file not written: build/test/cassandra/cdc_raw:0/CommitLog-7-1517005121474_cdc.idx
          [junit] 	at org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest.testCompletedFlag(CommitLogSegmentManagerCDCTest.java:210)
      

      Attachments

        Issue Links

          Activity

            People

              jay.zhuang Jay Zhuang
              aweisberg Ariel Weisberg
              Jay Zhuang
              Joshua McKenzie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: