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

Fix Journal segment allocation/switch race condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.1
    • Accord
    • None

    Description

      Concurrent r/w workload is currently throwing:

      java.lang.IllegalArgumentException: Can not reference segment 1724695101990
              at org.apache.cassandra.journal.Segments.isFlushed(Segments.java:189)
              at org.apache.cassandra.journal.Journal.isFlushed(Journal.java:199)
              at org.apache.cassandra.journal.Journal$FlusherCallbacks.submit(Journal.java:151)
              at org.apache.cassandra.journal.Journal.onFlush(Journal.java:204)
              at org.apache.cassandra.service.accord.AccordJournal.appendCommand(AccordJournal.java:264)
              at org.apache.cassandra.service.accord.AccordCommandStore.appendCommands(AccordCommandStore.java:579)
              at org.apache.cassandra.service.accord.async.AsyncOperation.runInternal(AsyncOperation.java:277)
              at org.apache.cassandra.service.accord.async.AsyncOperation.run(AsyncOperation.java:303)
              at org.apache.cassandra.service.accord.async.AsyncOperation.onLoaded(AsyncOperation.java:169)
              at accord.utils.async.AsyncCallbacks.lambda$inExecutorService$0(AsyncCallbacks.java:36)
              at org.apache.cassandra.concurrent.ExecutionFailure$1.run(ExecutionFailure.java:133)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
              at java.base/java.lang.Thread.run(Thread.java:829)
      

      Attachments

        1. ci_summary.html
          78 kB
          Alex Petrov
        2. result_details.tar.gz
          12.37 MB
          Alex Petrov

        Issue Links

          Activity

            People

              ifesdjeen Alex Petrov
              ifesdjeen Alex Petrov
              Alex Petrov
              Aleksey Yeschenko, Alex Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: