From a9b7913d5689cae804fbd072a03cd2d2f771ab6a Mon Sep 17 00:00:00 2001 From: litao Date: Sun, 29 Sep 2024 10:58:13 +0800 Subject: [PATCH] HDFS-17626. Reduce lock contention at datanode startup (#7053). Contributed by Tao Li. Signed-off-by: Ayush Saxena Signed-off-by: He Xiaoqiao --- .../org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a391b8b8fb..45eeac85d6 100755 --- 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 @@ -258,7 +258,7 @@ NamespaceInfo retrieveNamespaceInfo() throws IOException { while (shouldRun()) { try { nsInfo = bpNamenode.versionRequest(); - LOG.debug(this + " received versionRequest response: " + nsInfo); + LOG.debug("{} received versionRequest response: {}", this, nsInfo); break; } catch(SocketTimeoutException e) { // namenode is busy LOG.warn("Problem connecting to server: " + nnAddr);