From 55bb08f5ed428d41945c2f184a6936053d976557 Mon Sep 17 00:00:00 2001 From: ConfX <114765570+teamconfx@users.noreply.github.com> Date: Thu, 28 Mar 2024 23:02:07 +0800 Subject: [PATCH] HBASE-28452 Missing null check of rpcServer.scheduler.executor causes NPE with invalid value of hbase.client.default.rpc.codec (#5778) Signed-off-by: Duo Zhang (cherry picked from commit f412bdbb9ad9810e9bf3db0b76f7f1dffff3d15d) --- .../java/org/apache/hadoop/hbase/ipc/FifoRpcScheduler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/FifoRpcScheduler.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/FifoRpcScheduler.java index b51154fc24eb..842366d625f2 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/FifoRpcScheduler.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/FifoRpcScheduler.java @@ -68,7 +68,9 @@ public void start() { @Override public void stop() { - this.executor.shutdown(); + if (this.executor != null) { + this.executor.shutdown(); + } } private static class FifoCallRunner implements Runnable {