This is an automated email from the ASF dual-hosted git repository.
sarvekshayr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 696089615de HDDS-14616. Improve error message for trying to rename
across volumes or buckets (#9749)
696089615de is described below
commit 696089615de185209e42d34c159d35a771d878ef
Author: sravani <[email protected]>
AuthorDate: Wed Feb 11 23:15:28 2026 +0530
HDDS-14616. Improve error message for trying to rename across volumes or
buckets (#9749)
---
.../java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
b/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
index b1c7dc7cd31..67f09313d0e 100644
---
a/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
+++
b/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java
@@ -418,7 +418,8 @@ private boolean renameInSpan(Path src, Path dst) throws
IOException {
OFSPath ofsDst = new OFSPath(dst,
ozoneConfiguration);
if (!ofsSrc.isInSameBucketAs(ofsDst)) {
- throw new IOException("Cannot rename a key to a different bucket");
+ throw new IOException("Cannot rename across different volumes or
buckets." +
+ " Only supported within the same bucket.");
}
OzoneBucket bucket = adapterImpl.getBucket(ofsSrc, false);
if (bucket.getBucketLayout().isFileSystemOptimized()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]