[
https://issues.apache.org/jira/browse/HDFS-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964861#comment-13964861
]
Jing Zhao commented on HDFS-6227:
---------------------------------
I quickly checked the code, in ShortCircuitCache#unref, we close the replica
when the ref count is 0, but I did not find the corresponding code to remove
the replica object. Thus is it possible that the cause of the issue is a closed
ShortCircuitReplica object was still retrieved from the ShortCircuitCache and
used for reading? [~cmccabe], could you provide some input?
> 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
>
> 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)