sumitagrawl commented on code in PR #9034:
URL: https://github.com/apache/ozone/pull/9034#discussion_r2355179778
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/report/DiskBalancerReportPublisher.java:
##########
@@ -59,6 +70,28 @@ protected long getReportFrequency() {
@Override
protected DiskBalancerReportProto getReport() {
- return getContext().getParent().getContainer().getDiskBalancerReport();
+ DiskBalancerInfo info =
getContext().getParent().getContainer().getDiskBalancerInfo();
+ if (info == null) {
+ return null;
+ }
+
+ DiskBalancerReportProto currentReport = info.toDiskBalancerReportProto();
+
+ // Always publish if DiskBalancer state is running or paused by node state
+ if (info.getOperationalState() ==
DiskBalancerService.DiskBalancerOperationalState.RUNNING
Review Comment:
Always we can compare and send.
--
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]