[
https://issues.apache.org/jira/browse/HBASE-11565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14070955#comment-14070955
]
Jimmy Xiang commented on HBASE-11565:
-------------------------------------
Thanks a lot for the review. I committed the patch to branch 1 and master.
Branch 0.98 and before has different code. I attached a separate patch for 0.98
and older branches. The idea is to make sure the connection is interrupted just
once, and at a right spot. For example, if the connection is already in the
middle of close(), we'd better leave it alone. Could you please take a look?
> Stale connection could stay for a while
> ---------------------------------------
>
> Key: HBASE-11565
> URL: https://issues.apache.org/jira/browse/HBASE-11565
> Project: HBase
> Issue Type: Bug
> Components: Client
> Reporter: Jimmy Xiang
> Assignee: Jimmy Xiang
> Attachments: hbase-11565-0.98.patch, hbase-11565-v1.patch
>
>
> In RpcClient, we cache the connection to each region server. When the
> connection goes bad, it stays in the cache till it's removed. Before it's
> removed, new calls will try to use it and just fail. The connection is a
> thread. It could be stuck in trying to receive some response. Before this
> receiving thread times out, it won't remove itself from the cache.
> It will be better to interrupt the receiving thread and let it clean up
> sooner.
--
This message was sent by Atlassian JIRA
(v6.2#6252)