From f77965b29eb3f33713c39f1cb341fdc7c91b0220 Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Fri, 27 Dec 2019 09:12:44 +0530 Subject: [PATCH] HDFS-14997. Addendum: BPServiceActor processes commands from NameNode asynchronously. Contributed by Xiaoqiao He. (cherry picked from commit 80f91d14ab0fb385252d4eeb19141bd059303d59) --- .../org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java index c45b9e7dedd..e36c401d534 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java @@ -578,6 +578,9 @@ class BPServiceActor implements Runnable { if (bpThread != null) { bpThread.interrupt(); } + if (commandProcessingThread != null) { + commandProcessingThread.interrupt(); + } } //This must be called only by blockPoolManager