hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14072) AliyunOSS: Failed to read from stream when seek beyond the download size
Date Wed, 15 Feb 2017 09:14:41 GMT

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

Hudson commented on HADOOP-14072:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11253 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11253/])
HADOOP-14072. AliyunOSS: Failed to read from stream when seek beyond the (kai.zheng: rev cd3e59a3dcc69f68711777d448da5228a55846b3)
* (edit) hadoop-tools/hadoop-aliyun/src/test/java/org/apache/hadoop/fs/aliyun/oss/contract/TestAliyunOSSContractSeek.java
* (edit) hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSInputStream.java


> AliyunOSS: Failed to read from stream when seek beyond the download size
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-14072
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14072
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/oss
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Genmao Yu
>            Assignee: Genmao Yu
>             Fix For: 3.0.0-alpha3
>
>         Attachments: HADOOP-14072.001.patch
>
>
> {code}
> public synchronized void seek(long pos) throws IOException {
>     checkNotClosed();
>     if (position == pos) {
>       return;
>     } else if (pos > position && pos < position + partRemaining) {
>       AliyunOSSUtils.skipFully(wrappedStream, pos - position);
>       position = pos;
>     } else {
>       reopen(pos);
>     }
>   }
> {code}
> In seek function, we need to update the partRemaining when the seeking position is located
in downloaded part.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message