stuxuhai commented on code in PR #9491:
URL: https://github.com/apache/ozone/pull/9491#discussion_r2618956044
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneFileSystem.java:
##########
@@ -954,7 +954,8 @@ public RemoteIterator<LocatedFileStatus>
listLocatedStatus(Path f)
throws IOException {
incrementCounter(Statistic.INVOCATION_LIST_LOCATED_STATUS);
return new OzoneFileStatusIterator<>(f,
- (stat) -> stat instanceof LocatedFileStatus ? (LocatedFileStatus) stat
: new LocatedFileStatus(stat, null),
+ (stat) -> stat instanceof LocatedFileStatus ? (LocatedFileStatus) stat
:
Review Comment:
No, it’s not necessary. `getFileStatus()` only returns basic file metadata
and does not expose any `BlockLocation` information, so this logic is not
applicable there.
--
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]