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

NPE on removeUnfinishedCompactionLeftovers after sstablesplit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: Legacy/Tools
    • Labels:
      None
    • Environment:

      Ubuntu 14.04

    • Severity:
      Normal
    • Since Version:

      Description

      After stopping the node and running sstablesplit on a single table, restarting Cassandra results in an NPE:

      INFO  [SSTableBatchOpen:2] 2015-10-09 13:15:38,745 SSTableReader.java:471 - Opening /var/lib/cassandra/xvdd/data/system/schema_keyspaces-b0f2235744583cdb9631c43e59ce3676/system-schema_keyspaces-ka-514 (175 bytes)
      INFO  [main] 2015-10-09 13:15:38,747 AutoSavingCache.java:146 - reading saved cache /var/lib/cassandra/xvdb/cache/system-schema_keyspaces-b0f2235744583cdb9631c43e59ce3676-KeyCache-b.db
      ERROR [main] 2015-10-09 13:15:39,114 CassandraDaemon.java:541 - Exception encountered during startup
      org.apache.cassandra.io.FSReadError: java.lang.NullPointerException
              at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(ColumnFamilyStore.java:641) ~[apache-cassandra-2.1.7-SNAPSHOT.jar:2.1.7-SNAPSHOT]
              at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:302) [apache-cassandra-2.1.7-SNAPSHOT.jar:2.1.7-SNAPSHOT]
              at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:524) [apache-cassandra-2.1.7-SNAPSHOT.jar:2.1.7-SNAPSHOT]
              at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:613) [apache-cassandra-2.1.7-SNAPSHOT.jar:2.1.7-SNAPSHOT]
      Caused by: java.lang.NullPointerException: null
              at org.apache.cassandra.db.ColumnFamilyStore.removeUnfinishedCompactionLeftovers(ColumnFamilyStore.java:633) ~[apache-cassandra-2.1.7-SNAPSHOT.jar:2.1.7-SNAPSHOT]
              ... 3 common frames omitted
      

      The node would only come back up after deleting all the files in compactions_in_progress.

        Attachments

        1. npe_system.log
          20 kB
          Robbie Strickland

          Issue Links

            Activity

              People

              • Assignee:
                marcuse Marcus Eriksson
                Reporter:
                rstrickland Robbie Strickland
                Authors:
                Marcus Eriksson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: