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

Adler32 Digests for Compressed SSTables are Incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • None
    • None
    • None
    • Low

    Description

      ChecksumWriter append() calculates the checksum of a buffer, then also writes that checksum as an int into the provided DataOutput. The final call to writeFullChecksum will have the checksum of all of the buffers, but none of the intermediate int checksums.

      This issue was discovered (and a fix proposed) in #5791 - if the patch for #5791 is not accepted, some fix for src/java/org/apache/cassandra/io/util/DataIntegrityMetadata.java should be applied.

      Attachments

        1. cassandra-8778.patch
          4 kB
          Jeff Jirsa
        2. cassandra-8778.diff
          3 kB
          Jeff Jirsa

        Issue Links

          Activity

            People

              jjirsa Jeff Jirsa
              jjirsa Jeff Jirsa
              Jeff Jirsa
              Benedict Elliott Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: