HBASE-14474 Addendum closes connection in writeRequest() outside synchronized block

This reverts commit 414a7b18b12bdda51effcc7074c6134364fedf42.
This commit is contained in:
Enis Soztutar 2015-10-16 11:54:22 -07:00
parent dae1775a11
commit 6076ed2a12

View File

@ -926,10 +926,9 @@ public class RpcClientImpl extends AbstractRpcClient {
// call close outside of the synchronized (outLock) to prevent deadlock - HBASE-14474 // call close outside of the synchronized (outLock) to prevent deadlock - HBASE-14474
if (writeException != null) { if (writeException != null) {
if (markClosed(writeException)) { markClosed(writeException);
close(); close();
} }
}
// We added a call, and may be started the connection close. In both cases, we // We added a call, and may be started the connection close. In both cases, we
// need to notify the reader. // need to notify the reader.