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

Colin Patrick McCabe commented on HDFS-6227:
--------------------------------------------

It should be sufficient to just check if the stream is open in 
{{ShortCircuitCache#unref}}.  I also added a regression test to 
{{TestBlockReaderFactory}}.

> ShortCircuitCache#unref should purge ShortCircuitReplicas whose streams have 
> been closed by java interrupts
> -----------------------------------------------------------------------------------------------------------
>
>                 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, HDFS-6227.001.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