[
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
{code:java}
// 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 trouble.
}
{code}
was:
FilePerChunkStrategy#readChunk
{code:java}
// 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.
}
{code}
> 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
> {code:java}
> // 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 trouble.
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]