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:
parent
5e2eac6c41
commit
7171e2190e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue