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

Fix possible NPE in Scrubber

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Severity:
      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

            People

            • Assignee:
              stefania Stefania Alborghetti Assign to me
              Reporter:
              stefania Stefania Alborghetti
              Authors:
              Stefania Alborghetti
              Reviewers:
              Tom Hobbs

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment