yandrey321 commented on code in PR #10894:
URL: https://github.com/apache/ozone/pull/10894#discussion_r3729554992


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -2181,19 +2194,22 @@ private List<OzoneFileStatus> buildFinalStatusList(
       fileStatusFinalList.add(fileStatus);
     }
     return sortPipelineInfo(fileStatusFinalList, keyInfoList,
-        omKeyArgs, clientAddress);
+        omKeyArgs, clientAddress, refreshPipelineInfo);
   }
 
   private List<OzoneFileStatus> sortPipelineInfo(
       List<OzoneFileStatus> fileStatusFinalList, List<OmKeyInfo> keyInfoList,
-      OmKeyArgs omKeyArgs, String clientAddress) throws IOException {
+      OmKeyArgs omKeyArgs, String clientAddress, boolean refreshPipelineInfo)
+      throws IOException {
     if (omKeyArgs.getLatestVersionLocation()) {
       slimLocationVersion(keyInfoList.toArray(new OmKeyInfo[0]));
     }
-    // refreshPipeline flag check has been removed as part of
-    // https://issues.apache.org/jira/browse/HDDS-3658.
-    // Please refer this jira for more details.
-    refreshPipelineFromCache(keyInfoList);
+    if (refreshPipelineInfo) {
+      // refreshPipeline flag check has been removed as part of

Review Comment:
   it seems like the same flag check was removed some time ago. So comments 
should be adjusted after checking that the same issue would not be reintroduced 
after this fix.



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