Explorar o código

HDFS-12215. DataNode.transferBlock does not create its daemon in the xceiver thread group. (Lei Xu)

Lei Xu %!s(int64=7) %!d(string=hai) anos
pai
achega
36bada3032

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java

@@ -2999,8 +2999,8 @@ public class DataNode extends ReconfigurableBase
     b.setNumBytes(visible);
 
     if (targets.length > 0) {
-      new DataTransfer(targets, targetStorageTypes, targetStorageIds, b, stage,
-          client).run();
+      new Daemon(new DataTransfer(targets, targetStorageTypes,
+          targetStorageIds, b, stage, client)).start();
     }
   }