From c22b5108df9328c3f1cefc3f9c99d8e1ca6e56be Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Fri, 25 Aug 2017 16:01:14 -0700 Subject: [PATCH] HDFS-12215. DataNode.transferBlock does not create its daemon in the xceiver thread group. (Lei Xu) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java --- .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 40accd6f50c..c1a96cb87c0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java @@ -2919,7 +2919,8 @@ public class DataNode extends ReconfigurableBase b.setNumBytes(visible); if (targets.length > 0) { - new DataTransfer(targets, targetStorageTypes, b, stage, client).run(); + new Daemon(new DataTransfer(targets, targetStorageTypes, + b, stage, client)).start(); } }