[
https://issues.apache.org/jira/browse/HDDS-14616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-14616:
----------------------------------
Labels: pull-request-available (was: )
> Improve error message when renaming keys across different volumes or buckets
> ----------------------------------------------------------------------------
>
> Key: HDDS-14616
> URL: https://issues.apache.org/jira/browse/HDDS-14616
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Sravani Revuri
> Assignee: Sravani Revuri
> Priority: Minor
> Labels: pull-request-available
>
> The current error message for ofs rename failures is generic and confusing
> when moving paths across different volumes or when moving volumes themselves.
> Examples:
> {code:bash}
> Moving across volumes
> [root@node ~]# ozone fs -mv ofs://cluster/vol1/buck1 ofs://cluster/vol2/buck2
> mv: Cannot rename a key to a different bucket
> Moving a volume
> [root@node ~]# ozone fs -mv ofs://cluster/vol1 ofs://cluster/vol2
> mv: Cannot rename a key to a different bucket
> {code}
> In these scenarios, the message "Cannot rename a key to a different bucket"
> is inaccurate or misleading to the user.
> Proposed Change:
> Update the IOException message to be more descriptive:
> "Cannot rename across different volumes or buckets. Only supported within the
> same bucket."
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]