HBASE-5141 Memory leak in MonitoredRPCHandlerImpl -- REDO
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1228749 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
45b7b8955b
commit
d821f6fcfc
|
@ -1343,6 +1343,7 @@ public abstract class HBaseServer implements RpcServer {
|
|||
errorClass, error);
|
||||
}
|
||||
call.sendResponseIfReady();
|
||||
status.markComplete("Sent response");
|
||||
} catch (InterruptedException e) {
|
||||
if (running) { // unexpected -- log it
|
||||
LOG.info(getName() + " caught: " +
|
||||
|
|
|
@ -217,6 +217,13 @@ public class MonitoredRPCHandlerImpl extends MonitoredTaskImpl
|
|||
this.remotePort = remotePort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markComplete(String status) {
|
||||
super.markComplete(status);
|
||||
this.params = null;
|
||||
this.packet = null;
|
||||
}
|
||||
|
||||
public synchronized Map<String, Object> toMap() {
|
||||
// only include RPC info if the Handler is actively servicing an RPC call
|
||||
Map<String, Object> map = super.toMap();
|
||||
|
|
Loading…
Reference in New Issue