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:
parent
bd50b9117e
commit
089e06de21
|
@ -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