You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/07/17 20:53:33 UTC
[jira] Commented: (HADOOP-3778) seek(long) in DFSInputStream should
catch socket exception for retry later
[ https://issues.apache.org/jira/browse/HADOOP-3778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614487#action_12614487 ]
Raghu Angadi commented on HADOOP-3778:
--------------------------------------
> DFSClient will retry in read/write methods, but no such mechanism found when seek(long) calling blockReader.skip(diff) (DFSClient.java #1582),
Thats right. seek() should retry just like read(). Your fix seems correct.
> HADOOP-2346 introduced data read/write timeout.
I don't see why it is related to HADOOP-2346.
Could you clean up the patch so that it has the right indentation and does not have the white space changes ...
> seek(long) in DFSInputStream should catch socket exception for retry later
> --------------------------------------------------------------------------
>
> Key: HADOOP-3778
> URL: https://issues.apache.org/jira/browse/HADOOP-3778
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.17.1
> Reporter: LN
> Priority: Minor
> Attachments: HADOOP-3778.patch
>
>
> HADOOP-2346 introduced data read/write timeout. when data stream borken, DFSClient will retry in read/write methods, but no such mechanism found when seek(long) calling blockReader.skip(diff) (DFSClient.java #1582), will let IOException throw to application. i met NPE when using MapFile in hbase.
> i'm supposing in the seek(long) method, let done be 'false' will causing retry (via 'blockEnd = -1'), a patch will attached later for review.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.