This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 4ba1bb0e7e2953ab52ce2f116901305d5b504ba7
Author: ConfX <114765570+teamco...@users.noreply.github.com>
AuthorDate: Thu Mar 28 23:02:07 2024 +0800

    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 <zhang...@apache.org>
    (cherry picked from commit f412bdbb9ad9810e9bf3db0b76f7f1dffff3d15d)
---
 .../src/main/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 b51154fc24e..842366d625f 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 class FifoRpcScheduler extends RpcScheduler {
 
   @Override
   public void stop() {
-    this.executor.shutdown();
+    if (this.executor != null) {
+      this.executor.shutdown();
+    }
   }
 
   private static class FifoCallRunner implements Runnable {

Reply via email to