You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2019/05/05 22:09:00 UTC

[jira] [Created] (HDDS-1491) Ozone KeyInputStream seek() should not read the chunk file

Hanisha Koneru created HDDS-1491:
------------------------------------

             Summary: Ozone KeyInputStream seek() should not read the chunk file
                 Key: HDDS-1491
                 URL: https://issues.apache.org/jira/browse/HDDS-1491
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Hanisha Koneru
            Assignee: Hanisha Koneru


KeyInputStream#seek() calls BlockInputStream#seek() to adjust the buffer position to the seeked position. As part of the seek operation, the whole chunk is read from the container and stored in the buffer so that the buffer position can be advanced to the seeked position. 

We should not read from disk on a seek() operation. Instead, for a read operation, when the chunk file is read and put in the buffer, at that time, we can advance the buffer position to the previously seeked position.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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