[
https://issues.apache.org/jira/browse/HDDS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16607926#comment-16607926
]
Nanda kumar commented on HDDS-416:
----------------------------------
[~ljain], the existing logic doesn't look like a bug. This is more like a
performance optimization. Rather than checking the chunkOffset and buffer
position of {{ChunkInputStream}} each time, {{currentPosition}} in
{{ChunkInputStreamEntry}} caches the value which can be directly returned to
the caller.
> Fix bug in ChunkInputStreamEntry
> --------------------------------
>
> Key: HDDS-416
> URL: https://issues.apache.org/jira/browse/HDDS-416
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Ozone Client
> Reporter: Lokesh Jain
> Assignee: Lokesh Jain
> Priority: Major
> Fix For: 0.2.1
>
> Attachments: HDDS-416.001.patch
>
>
> ChunkInputStreamEntry maintainsĀ currentPosition field. This field is
> redundant and can be replaced by getPos().
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]