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

Node refuses to start with exception in ColumnFamilyStore.removeUnfinishedCompactionLeftovers when find that some to be removed files are already removed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.5
    • None
    • None
    • Normal

    Description

      Node refuses to start with

      Caused by: java.lang.IllegalStateException: Unfinished compactions reference missing sstables. This should never happen since compactions are marked finished before we start removing the old sstables.
            at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(ColumnFamilyStore.java:544)
            at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:262)
      

      IMO, there is no reason to refuse to start discivering files that must be removed are already removed. It looks like pure bug diagnostic code and mean nothing to operator (nor he can do anything about this).

      Replaced throw of excepion with dump of diagnostic warning and continue startup.

      Attachments

        1. removeUnfinishedCompactionLeftovers.txt
          2 kB
          Oleg Anastasyev
        2. 6086-v2.txt
          2 kB
          Yuki Morishita
        3. 6086-2.0-v3.txt
          18 kB
          Tom Hobbs

        Issue Links

          Activity

            People

              thobbs Tom Hobbs
              m0nstermind Oleg Anastasyev
              Tom Hobbs
              Yuki Morishita
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: