dombizita opened a new pull request, #4478: URL: https://github.com/apache/ozone/pull/4478
## What changes were proposed in this pull request? Currently if we want to move (with rename) a key to bucket level (eg. from `/vol1/buck1/dir1/key1` to `/vol1/buck1/key1`) and the bucket is FSO it'll fail with `Invalid KeyPath, empty keyName`. The problem is that if the destination path does not contain the key name it won't add the source key name to the path (like it does if the rename is happening inside a non FSO bucket). The patch adds this functionality to the `renameFSO()` method and to have the key name I added a new `getFileName()` method to the `OFSPath` class, which will give back the leaf key. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8242 ## How was this patch tested? Added unit tests and successful CI on my fork: https://github.com/dombizita/ozone/actions/runs/4510369572 -- 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]
