You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2020/06/15 12:22:00 UTC

[jira] [Updated] (HDDS-3802) Incorrect data returned by reading a FILE_PER_CHUNK block

     [ https://issues.apache.org/jira/browse/HDDS-3802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sammi Chen updated HDDS-3802:
-----------------------------
    Description: 
FilePerChunkStrategy#readChunk 

{quote}// 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. 
        }
{quote}


  was:
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. 
        }




> 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
>            Priority: Critical
>
> FilePerChunkStrategy#readChunk 
> {quote}// 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. 
>         }
> {quote}



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

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