[ 
https://issues.apache.org/jira/browse/HDDS-11549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Krishna Kumar Asawa reassigned HDDS-11549:
------------------------------------------

    Assignee: Tanvi Penumudy

> The existence check of source file in rename is invalid
> -------------------------------------------------------
>
>                 Key: HDDS-11549
>                 URL: https://issues.apache.org/jira/browse/HDDS-11549
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Tanvi Penumudy
>            Priority: Minor
>
> OMKeyRenameRequestWithFSO validateAndUpdateCache() throws an exception if the 
> source does not exist:
> https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRenameRequestWithFSO.java#L124
> However, if the source does not exist, it would actually fail before this 
> step at preExecute() because of Key ACL check, and the client get exception 
> message "Unable to get file status: volume: ..." instead of "Key not found "
> The end result is the same though. Probably nothing to change here.
> It would be nice to add a test to verify rename exception message in the 
> contract test still: 
> https://github.com/apache/ozone/blob/master/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/contract/AbstractContractRenameTest.java#L80



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to