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

CommitLogReplayer continues startup after encountering errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.1, 3.0 beta 1
    • None
    • None
    • Normal

    Description

      There are a few places where the commit log recovery method either skips sections or just returns when it encounters errors.

      Specifically if it can't read the header here: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L298

      Or if there are compressor problems here: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L314 and here: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java#L366

      Whether these are user-fixable or not, I think we should require more direct user intervention (ie: fix what's wrong, or remove the bad file and restart) since we're basically losing data.

      Attachments

        1. 9749-coverage.tgz
          1.21 MB
          Ariel Weisberg

        Issue Links

          Activity

            People

              dnk Dmitry Konstantinov
              bdeggleston Blake Eggleston
              Dmitry Konstantinov
              Ariel Weisberg
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: