HDFS-16443. Fix edge case where DatanodeAdminDefaultMonitor doubly enqueues a DatanodeDescriptor on exception (#3942)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
KevinWikant 2022-01-30 23:04:32 -05:00 committed by GitHub
parent bd50b9117e
commit 089e06de21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ public class DatanodeAdminDefaultMonitor extends DatanodeAdminMonitorBase
+ "{}.", dn, e);
getPendingNodes().add(dn);
toRemove.add(dn);
unhealthyDns.remove(dn);
} finally {
iterkey = dn;
}