[ https://issues.apache.org/jira/browse/HDDS-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16534849#comment-16534849 ]
Lokesh Jain commented on HDDS-208: ---------------------------------- [~xyao] Thanks for reviewing the patch! For ozoneFS the keyname would be the absolute path of a file or directory. Therefore lastIndexOf('/') can not be used in such a case. > ozone createVolume command ignores the first character of the "volume name" > given as argument > --------------------------------------------------------------------------------------------- > > Key: HDDS-208 > URL: https://issues.apache.org/jira/browse/HDDS-208 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Reporter: Nilotpal Nandi > Assignee: Lokesh Jain > Priority: Major > Fix For: 0.2.1 > > Attachments: HDDS-208.001.patch > > > createVolume command ran to create volume "testvolume123". > Volume created with name "estvolume123" instead of "testvolume123". It > ignores the first character of the volume name > > {noformat} > [root@ozone-vm bin]# ./ozone oz -createVolume testvolume123 -user root > 2018-07-02 05:33:35,510 WARN util.NativeCodeLoader: Unable to load > native-hadoop library for your platform... using builtin-java classes where > applicable > 2018-07-02 05:33:36,093 [main] INFO - Creating Volume: estvolume123, with > root as owner and quota set to 1152921504606846976 bytes. > {noformat} > > ozone listVolume command : > > {noformat} > [root@ozone-vm bin]# ./ozone oz -listVolume / > 2018-07-02 05:36:47,835 WARN util.NativeCodeLoader: Unable to load > native-hadoop library for your platform... using builtin-java classes where > applicable > [ { > "owner" : { > "name" : "root" > }, > "quota" : { > "unit" : "TB", > "size" : 1048576 > }, > "volumeName" : "nnvolume1", > "createdOn" : "Sun, 18 Sep +50444 15:12:11 GMT", > "createdBy" : "root" > .. > .. > }, { > "owner" : { > "name" : "root" > }, > "quota" : { > "unit" : "TB", > "size" : 1048576 > }, > "volumeName" : "estvolume123", > "createdOn" : "Sat, 17 May +50470 08:01:41 GMT", > "createdBy" : "root" > } ] > {noformat} > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org