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

sstablemetadata NPE on cassandra 2.2

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.6, 3.0.5, 3.5
    • Legacy/Tools
    • None
    • Low

    Description

      I have recently upgraded my cassandra cluster to 2.2, currently running 2.2.3. After running the first repair, cassandra renames the sstables to the new naming schema that does not contain the keyspace name.

      This causes sstablemetadata to fail with the following stack trace:

      Exception in thread "main" java.lang.NullPointerException
              at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:275)
              at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:172)
              at org.apache.cassandra.tools.SSTableMetadataViewer.main(SSTableMetadataViewer.java:52)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yukim Yuki Morishita Assign to me
            tsbatista Tiago Batista
            Yuki Morishita
            Paulo Motta
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment