HBASE-15114 NPE when IPC server ByteBuffer reservoir is turned off
This commit is contained in:
parent
546adefcd6
commit
795f91439c
@ -348,7 +348,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
||||
* cleanup.
|
||||
*/
|
||||
void done() {
|
||||
if (this.cellBlock != null) {
|
||||
if (this.cellBlock != null && reservoir != null) {
|
||||
// Return buffer to reservoir now we are done with it.
|
||||
reservoir.putBuffer(this.cellBlock);
|
||||
this.cellBlock = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user