adoroszlai commented on code in PR #11674:
URL: https://github.com/apache/ozone/pull/11674#discussion_r4440095024
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java:
##########
@@ -537,6 +537,27 @@ void rename(OzoneBucket bucket, String path, String
newPath)
bucket.renameKey(key, newKey);
}
+ /**
+ * Whether OM rejects a rename that requires a FILE_SYSTEM_OPTIMIZED bucket
on any other layout (HDDS-16951), so a
+ * file system rename can be sent without fetching the bucket to learn its
layout.
+ */
+ boolean isRenameRequiringFileSystemOptimizedSupported() {
+ return
proxy.getOmVersion().compareTo(OzoneManagerVersion.RENAME_KEY_REJECTS_NON_FSO)
>= 0;
Review Comment:
@chungen0126 @yandrey321 this change request was missed.
(Please don't approve when requesting changes, it's easy to miss later.)
--
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]