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

BatchlogManager unit tests failing on truncate race condition

    XMLWordPrintableJSON

Details

    • Normal

    Description

      Example on CI here. This seems to have only started happening relatively recently (within the last month or two).

      As far as I can tell, this is only showing up on BatchlogManagerTests purely because it is an aggressive user of truncate. The assertion is hit in the setUp method, so it can happen before any of the test methods. The assertion occurs because a compaction is happening when truncate wants to discard SSTables; trace level logs suggest that this compaction is submitted after the pause on the CompactionStrategyManager.

      This should be reproducible by running BatchlogManagerTest in a loop - it takes up to half an hour in my experience. A trace-level log from such a run is attached - grep for my added log message "SSTABLES COMPACTING WHEN DISCARDING" to find when the assert is hit.

      Attachments

        Activity

          People

            yukim Yuki Morishita
            jkni Joel Knighton
            Yuki Morishita
            Joel Knighton
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: