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

Race condition in CommitLog.recover can prevent startup

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal

      Description

      In CommitLog::recover the list of segments to recover from is determined by removing the files managed by the CommitLogSegmentManager from the list of files present in the commit log directory. Unfortunatly, due to the way the creation of segments is done there is a time window where a segment file has been created but has not been added yet to the list of segments managed by the CommitLogSegmentManager. If the filtering ocurs during that time window the Commit log might try to recover from that new segment and crash.

        Attachments

        1. 11743-2.2.txt
          4 kB
          Benjamin Lerer

          Activity

            People

            • Assignee:
              blerer Benjamin Lerer
              Reporter:
              blerer Benjamin Lerer
              Authors:
              Benjamin Lerer
              Reviewers:
              Branimir Lambov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: