[ https://issues.apache.org/jira/browse/HDDS-2259?focusedWorklogId=324625&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-324625 ]
ASF GitHub Bot logged work on HDDS-2259: ---------------------------------------- Author: ASF GitHub Bot Created on: 07/Oct/19 21:36 Start Date: 07/Oct/19 21:36 Worklog Time Spent: 10m Work Description: anuengineer commented on pull request #1605: HDDS-2259. Container Data Scrubber computes wrong checksum URL: https://github.com/apache/hadoop/pull/1605 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 324625) Time Spent: 50m (was: 40m) > Container Data Scrubber computes wrong checksum > ----------------------------------------------- > > Key: HDDS-2259 > URL: https://issues.apache.org/jira/browse/HDDS-2259 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Components: Ozone Datanode > Affects Versions: 0.5.0 > Reporter: Attila Doroszlai > Assignee: Attila Doroszlai > Priority: Critical > Labels: pull-request-available > Time Spent: 50m > Remaining Estimate: 0h > > 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. > {code:title=https://github.com/apache/hadoop/blob/55c5436f39120da0d7dabf43d7e5e6404307123b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainerCheck.java#L259-L273} > byte[] buffer = new byte[cData.getBytesPerChecksum()]; > ... > v = fs.read(buffer); > ... > bytesRead += v; > ... > ByteString actual = cal.computeChecksum(buffer) > .getChecksums().get(0); > {code} > This results in marking all closed containers as unhealthy. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org