HBASE-15114 NPE when IPC server ByteBuffer reservoir is turned off
This commit is contained in:
parent
76bce77326
commit
2d2fdd5a9f
|
@ -349,7 +349,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…
Reference in New Issue