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
1 changed files with 1 additions and 0 deletions

View File

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