Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1162 Data Scrubbing for Ozone Containers
  3. HDDS-2259

Container Data Scrubber computes wrong checksum

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Chunk checksum verification fails for (almost) any file. This is caused by computing checksum for the entire buffer, regardless of the actual size of the chunk.

                  byte[] buffer = new byte[cData.getBytesPerChecksum()];
      ...
                      v = fs.read(buffer);
      ...
                      bytesRead += v;
      ...
                      ByteString actual = cal.computeChecksum(buffer)
                          .getChecksums().get(0);
      

      This results in marking all closed containers as unhealthy.

      Attachments

        Activity

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

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h

                Slack

                  Issue deployment