Skip to content

Commit a97f1ae

Browse files
committed
HDFS-16478 Add thread id to command processor name
Provides additional clarity in logs when debugging MiniDFSCluster with multiple in-process DataNodes.
1 parent 3653754 commit a97f1ae

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode

1 file changed

+1
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ class CommandProcessingThread extends Thread {
13781378
private final BlockingQueue<Runnable> queue;
13791379

13801380
CommandProcessingThread(BPServiceActor actor) {
1381-
super("Command processor");
1381+
setName("Command processor-" + getId());
13821382
this.actor = actor;
13831383
this.queue = new LinkedBlockingQueue<>();
13841384
setDaemon(true);

0 commit comments

Comments
 (0)