ashishkumar50 commented on code in PR #4530:
URL: https://github.com/apache/ozone/pull/4530#discussion_r1161879843


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java:
##########
@@ -314,9 +314,8 @@ public OzoneFileStatus getStatus(String prefixPath, long 
scmBlockSize,
       } else {
         Preconditions.checkArgument(value instanceof OmKeyInfo);
         keyInfo = (OmKeyInfo) value;
-        keyInfo.setFileName(keyInfo.getKeyName());
         String fullKeyPath = OMFileRequest.getAbsolutePath(prefixPath,
-            keyInfo.getKeyName());
+            keyInfo.getFileName());

Review Comment:
   Instead of doing this, I think it's better to have tool which should correct 
metadata. This will just avoid one problem but metadata will remain in corrupt 
state.



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