Details
Description
As mentioned HDFS-14171, SafeModeMonitor invoke useless #getNumLiveDataNodes if not config DataNode threshold.
The root cause is BlockManagerSafeMode#reportStatus(for trunk branch) or SafeModeInfo#reportStatus (for branch-2.8) print status every 20 seconds and invoke SafeModeInfo#getTurnOffTip.
Optimize with checking if config DataNode threshold then decide to if get number of live DataNodes.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-14171 Performance improvement in Tailing EditLog
- Resolved
- relates to
-
HDFS-15594 Lazy calculate live datanodes in safe mode tip
- Resolved