ArafatKhan2198 commented on code in PR #11843:
URL: https://github.com/apache/ozone/pull/11843#discussion_r4696880049


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java:
##########
@@ -1357,6 +1361,39 @@ public List<Long> suppressContainers(List<Long> 
containerIds, boolean suppress)
     return response.getFailedContainerIDsList();
   }
 
+  @Override
+  public String submitContainerIdExport(ContainerID startContainerId, 
HddsProtos.LifeCycleState lifeCycleState,
+      ContainerHealthState healthState, long maxRows, int batchSize, int 
partSize, String requestId)
+      throws IOException {
+    final SubmitContainerIdExportRequestProto.Builder request = 
SubmitContainerIdExportRequestProto.newBuilder()
+        .setMaxRows(maxRows)
+        .setBatchSize(batchSize)
+        .setPartSize(partSize);
+    if (requestId != null) {

Review Comment:
   Could we generate a request ID before sending the RPC when the caller leaves 
it empty? That would let automatic retries reuse the same ID and avoid starting 
a second export.



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