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

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

    [ https://issues.apache.org/jira/browse/HDDS-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839065#comment-16839065 ] 

Hudson commented on HDDS-1491:
------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16546 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/16546/])
HDDS-1491. Ozone KeyInputStream seek() should not read the chunk file. (github: rev 02c9efcb8174140c75d26dfd3ee0c280bde58fc8)
* (add) hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/package-info.java
* (edit) hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java
* (add) hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/TestBlockInputStream.java
* (edit) hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/KeyInputStream.java
* (add) hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestKeyInputStream.java
* (edit) hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestChunkStreams.java


> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org