HDFS-17209. Correct comments to align with the code (#6110). Contributed by Yu Wang.

Reviewed-by: Inigo Goiri <inigoiri@apache.org>
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
Wang Yu 2023-10-01 20:00:59 +08:00 committed by GitHub
parent b8815fe68b
commit b87180568b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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