HBASE-9319 Apply 'HBASE-7685 Closing socket connection can't be removed from SecureClient' to trunk
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1516885 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08247bfe76
commit
7a557f97b3
|
@ -951,9 +951,7 @@ public class RpcClient {
|
||||||
// release the resources
|
// release the resources
|
||||||
// first thing to do;take the connection out of the connection list
|
// first thing to do;take the connection out of the connection list
|
||||||
synchronized (connections) {
|
synchronized (connections) {
|
||||||
if (connections.get(remoteId) == this) {
|
connections.remove(remoteId, this);
|
||||||
connections.remove(remoteId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// close the streams and therefore the socket
|
// close the streams and therefore the socket
|
||||||
|
|
Loading…
Reference in New Issue