[
https://issues.apache.org/jira/browse/HDDS-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-2979:
---------------------------------
Labels: pull-request-available (was: )
> Implement ofs://: Fix getFileStatus for mkdir volume
> ----------------------------------------------------
>
> Key: HDDS-2979
> URL: https://issues.apache.org/jira/browse/HDDS-2979
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Siyao Meng
> Assignee: Siyao Meng
> Priority: Major
> Labels: pull-request-available
>
> [~xyao] discovered that when running {{ozone fs -mkdir -p ofs://om/vol1/}}
> (only volume name is given, no bucket name or key path), the command would
> fail in {{getFileStatus}} (before reaching {{createDirectory()}}) in Hadoop
> common code:
> {code:bash}
> bash-4.2$ ozone fs -mkdir -p ofs://om/vol1/
> -mkdir: Bucket or Volume length is illegal, valid length is 3-63 characters
> # Same w/o -p
> bash-4.2$ ozone fs -mkdir ofs://om/vol1/
> -mkdir: Bucket or Volume length is illegal, valid length is 3-63 characters
> {code}
> And we discovered with debugger attached that the root cause is that
> {{getFileStatus()}} is not behaving as expected.
> Solution: Patch existing OFS code, throw proper exception in {{getBucket()}}
> code to make Hadoop common happy.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]