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

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 089e06de21)
This commit is contained in:
KevinWikant 2022-01-30 23:04:32 -05:00 committed by Akira Ajisaka
parent 5e2eac6c41
commit 7171e2190e

View File

@ -275,6 +275,7 @@ private void check() {
+ "{}.", dn, e);
getPendingNodes().add(dn);
toRemove.add(dn);
unhealthyDns.remove(dn);
} finally {
iterkey = dn;
}