HBASE-16165 Decrease RpcServer.callQueueSize before writeResponse causes OOM (Guanghao Zhang)

This commit is contained in:
zhangduo 2016-09-18 10:05:27 +08:00
parent 591cc4cfb8
commit 91d03697d9
1 changed files with 2 additions and 0 deletions

View File

@ -574,6 +574,8 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
}
public synchronized void sendResponseIfReady() throws IOException {
// set param null to reduce memory pressure
this.param = null;
this.responder.doRespond(this);
}