You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rakesh Radhakrishnan (Jira)" <ji...@apache.org> on 2020/07/24 13:25:00 UTC

[jira] [Commented] (HDDS-4026) Dir rename failed when sets 'ozone.om.enable.filesystem.paths' to true

    [ https://issues.apache.org/jira/browse/HDDS-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164438#comment-17164438 ] 

Rakesh Radhakrishnan commented on HDDS-4026:
--------------------------------------------

*Analysis:* With flag to true, it is not adding the trailing slash to the 'fromKeyName' and 'toKeyName', which results in KEY_NOT_FOUND from KeyTable.
{code:java}
String fromKeyName = keyArgs.getKeyName();

// value coming as '/vol2/bucket2/subdir2'. For a directory, it stored the key with trailing slash and it should be like '/vol2/bucket2/subdir2/'.
{code}
We can verify this case via unit test case - [testFileSystem#testRenameDir()|https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestOzoneFileSystem.java#L193]. by setting flag to true.

> Dir rename failed when sets 'ozone.om.enable.filesystem.paths' to true
> ----------------------------------------------------------------------
>
>                 Key: HDDS-4026
>                 URL: https://issues.apache.org/jira/browse/HDDS-4026
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Rakesh Radhakrishnan
>            Priority: Major
>
> Sets ozone.om.enable.filesystem.paths=true, then starts the Ozone cluster.
> {code:java}
> [root~]$ ozone fs -mkdir o3fs://bucket2.vol2.ozone1/subdir2
> [root~]$ ozone fs -mv o3fs://bucket2.vol2.ozone1/subdir2 o3fs://bucket2.vol2.ozone1/subdir2-renamedmv: Key not found /vol2/bucket2/subdir2
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org