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

Using min_compress_ratio <= 1 causes corruption

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Urgent
    • Resolution: Fixed
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Critical

      Description

      This is because chunks written uncompressed end up below the compressed size threshold. Demonstrated by applying the attached patch meant to improve the testing of the 10520 changes, and running CompressedSequentialWriterTest.testLZ4Writer.

      The default min_compress_ratio: 0 is not affected as it never writes uncompressed.

        Attachments

        1. patch
          0.9 kB
          Branimir Lambov

          Issue Links

            Activity

              People

              • Assignee:
                blambov Branimir Lambov
                Reporter:
                blambov Branimir Lambov
                Authors:
                Branimir Lambov
                Reviewers:
                Dimitar Dimitrov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: