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

Possible corruption in compressed files with uncompressed chunks

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Correctness - Recoverable Corruption / Loss
    • Normal

    Description

      When deciding to switch to writing a chunk uncompressed in a compressed file (see CASSANDRA-10520) and that chunk is smaller than the full chunk size (only currently happens in the last chunk of the file), it may very rarely happen that the chunk is:

      • bigger than the compression limit when compressed
      • smaller than the compression limit when left uncompressed

      If this happens the writer will write it uncompressed, but the reader will treat it as compressed and fail when attempting to read it.

      Such chunks should be padded with 0s to the minimum uncompressed size.

      Attachments

        Activity

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

          People

            blambov Branimir Lambov Assign to me
            blambov Branimir Lambov
            Branimir Lambov
            Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment