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

Fix possible NPE in Scrubber

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Normal

    Description

      In scrubber there is a possible NullPointerException introduced by CASSANDRA-9140, as discovered by the Coverity static analyzer (CID 109861):

      throw new IOError(new IOException(String.format("Key from data file (%s) does not match key from index file (%s)",
              ByteBufferUtil.bytesToHex(key.getKey()), ByteBufferUtil.bytesToHex(currentIndexKey))));
      

      currentIndexKey may be null and bytesToHex expects non null.

      Attachments

        Issue Links

        Activity

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

          People

            stefania Stefania Alborghetti Assign to me
            stefania Stefania Alborghetti
            Stefania Alborghetti
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment