aryangupta1998 commented on PR #7998:
URL: https://github.com/apache/ozone/pull/7998#issuecomment-2778803601
Thanks for the patch @peterxcli, can we modify the process() of
DataNodeSafeModeRule something as,
```
protected void process(NodeRegistrationContainerReport reportsProto) {
if (validateBasedOnReportProcessing()) {
registeredDnSet.add(reportsProto.getDatanodeDetails().getUuid());
registeredDns = registeredDnSet.size();
} else {
registeredDns =
nodeManager.getNodes(NodeStatus.inServiceHealthy()).size();
}
if (scmInSafeMode()) {
SCMSafeModeManager.getLogger().info(
"SCM in safe mode. {} DataNodes registered, {} required.",
registeredDns, requiredDns);
}
}
```
because in future we maynot be needing the datanode reports to process the
information!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]