sadanand48 commented on code in PR #11962:
URL: https://github.com/apache/ozone/pull/11962#discussion_r4657278852


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/states/endpoint/HeartbeatEndpointTask.java:
##########
@@ -256,26 +272,54 @@ private void addReports(SCMHeartbeatRequestProto.Builder 
requestBuilder) {
           } else {
             requestBuilder.setField(descriptor, report);
           }
+          heartbeatSize.add(descriptor.getNumber(), report);
           break;
         }
       }
     }
+    return reportCount;
+  }
+
+  private void addCommandStatusReports(
+      SCMHeartbeatRequestProto.Builder requestBuilder,
+      int remainingReportCount, long currentHeartbeatSize) {
+    long remainingSafeBytes = Math.max(
+        0, safeHeartbeatSize - currentHeartbeatSize);
+    CommandStatusReportSelection selection =
+        context.getCommandStatusReports(rpcEndpoint.getAddress(),
+            remainingReportCount, remainingSafeBytes, safeHeartbeatSize);

Review Comment:
   PR description was stale



-- 
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]

Reply via email to