Sammi Chen created HDDS-3802:
--------------------------------

             Summary: Incorrect data returned by reading a FILE_PER_CHUNK block
                 Key: HDDS-3802
                 URL: https://issues.apache.org/jira/browse/HDDS-3802
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Sammi Chen
            Assignee: Sammi Chen


FilePerChunkStrategy#readChunk 

// use offset only if file written by old datanode
        long offset;
        if (file.exists() && file.length() == info.getOffset() + len) {
          offset = info.getOffset();
        } else {
          offset = 0;   ---> this line causes the issue. 
        }





--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to