HBASE-17812 Remove RpcConnection from pool in AbstractRpcClient.cancelConnections
This commit is contained in:
parent
7bb0624bab
commit
cc59fe4e91
@ -444,6 +444,7 @@ public abstract class AbstractRpcClient<T extends RpcConnection> implements RpcC
|
|||||||
&& remoteId.address.getHostName().equals(sn.getHostname())) {
|
&& remoteId.address.getHostName().equals(sn.getHostname())) {
|
||||||
LOG.info("The server on " + sn.toString() + " is dead - stopping the connection "
|
LOG.info("The server on " + sn.toString() + " is dead - stopping the connection "
|
||||||
+ connection.remoteId);
|
+ connection.remoteId);
|
||||||
|
connections.removeValue(remoteId, connection);
|
||||||
connection.shutdown();
|
connection.shutdown();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user