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

BatchlogManagerTest is failing intermittently

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.7
    • Component/s: Local/Compaction
    • Labels:
      None
    • Severity:
      Normal

      Description

      BatchlogManagerTest is failing sometimes with the following trace:

          [junit] Testcase: testLegacyReplay(org.apache.cassandra.batchlog.BatchlogManagerTest):      FAILED
          [junit] [BigTableReader(path='/Users/oleksandrpetrov/foss/java/cassandra/build/test/cassandra/data:0/system/batches-919a4bc57a333573b03e13fc3f68b465/mb-2-big-Data.db'), BigTableReader(path='/Users/oleksandrpetrov/foss/java/cassandra/build/test/cassandra/data:0/system/batches-919a4bc57a333573b03e13fc3f68b465/mb-1-big-Data.db')]
          [junit] junit.framework.AssertionFailedError: [BigTableReader(path='/Users/oleksandrpetrov/foss/java/cassandra/build/test/cassandra/data:0/system/batches-919a4bc57a333573b03e13fc3f68b465/mb-2-big-Data.db'), BigTableReader(path='/Users/oleksandrpetrov/foss/java/cassandra/build/test/cassandra/data:0/system/batches-919a4bc57a333573b03e13fc3f68b465/mb-1-big-Data.db')]
          [junit]     at org.apache.cassandra.db.ColumnFamilyStore.discardSSTables(ColumnFamilyStore.java:2521)
          [junit]     at org.apache.cassandra.db.ColumnFamilyStore$6.run(ColumnFamilyStore.java:2155)
          [junit]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          [junit]     at org.apache.cassandra.db.ColumnFamilyStore.runWithCompactionsDisabled(ColumnFamilyStore.java:2224)
          [junit]     at org.apache.cassandra.db.ColumnFamilyStore.truncateBlocking(ColumnFamilyStore.java:2166)
          [junit]     at org.apache.cassandra.batchlog.BatchlogManagerTest.setUp(BatchlogManagerTest.java:100)
      

      Sometimes there are running compactions despite the fact they should have been waited upon before truncate. pause and resume are called on the CompactionStrategyManager appropriately.

        Attachments

          Activity

            People

            • Assignee:
              ifesdjeen Alex Petrov
              Reporter:
              ifesdjeen Alex Petrov
              Authors:
              Alex Petrov
              Reviewers:
              Yuki Morishita
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: