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

Fix possible NPE in Scrubber

    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

        1. 9290-2.0.txt
          0.9 kB
          Tom Hobbs

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: