sumitagrawl commented on code in PR #7181:
URL: https://github.com/apache/ozone/pull/7181#discussion_r1762508398


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java:
##########
@@ -387,12 +388,24 @@ public List<ContainerInfo> listContainer(long 
startContainerID, int count)
     return listContainer(startContainerID, count, null, null, null);
   }
 
+  @Override

Review Comment:
   IMO,
   We should not provide new method, need update existing in such  a way works 
with both old and new for below scenario,
   
   1) New Client - New Server
   2) New Client - Old Server (since proto field is optional, so if old server, 
has***() check will confirm if field exit or not and can assign default as -1 
as not exist)
   3) Old Client - New Server (client will ignore new field)



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