From b87180568b261a617dc9645197615efd4c753786 Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Sun, 1 Oct 2023 20:00:59 +0800 Subject: [PATCH] HDFS-17209. Correct comments to align with the code (#6110). Contributed by Yu Wang. Reviewed-by: Inigo Goiri Signed-off-by: Ayush Saxena --- .../java/org/apache/hadoop/hdfs/server/datanode/DataNode.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/DataNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java index 42082019ba..4ade6ada72 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 @@ -2569,7 +2569,7 @@ public void shutdown() { if (this.threadGroup != null) { int sleepMs = 2; while (true) { - // When shutting down for restart, wait 2.5 seconds before forcing + // When shutting down for restart, wait 1 second before forcing // termination of receiver threads. if (!this.shutdownForUpgrade || (this.shutdownForUpgrade && (Time.monotonicNow() - timeNotified