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

Jing Zhao commented on HDFS-6227:
---------------------------------

bq. But there isn't any easy way to save concurrent readers from getting the 
same ClosedChannelException. 

Yes, agree. But I think we may first want to guarantee that new incoming 
readers will not reuse this closed file channel and hit the same issue again, 
i.e., we should purge the replica from the cache. In the current code, the 
replica still exists in the cache and cannot be purged any more (since 
DFSInputStream#readWithStrategy does not close the block reader in the final 
try).

> Short circuit read failed due to ClosedChannelException
> -------------------------------------------------------
>
>                 Key: HDFS-6227
>                 URL: https://issues.apache.org/jira/browse/HDFS-6227
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Jing Zhao
>            Assignee: Colin Patrick McCabe
>         Attachments: HDFS-6227.000.patch, 
> ShortCircuitReadInterruption.test.patch
>
>
> While running tests in a single node cluster, where short circuit read is 
> enabled and multiple threads may read the same file concurrently, one of the 
> read got ClosedChannelException and failed. Full exception trace see comment.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to