Siyao Meng created HDDS-4028:
--------------------------------

             Summary: Fix parser failure message for FS shell command put
                 Key: HDDS-4028
                 URL: https://issues.apache.org/jira/browse/HDDS-4028
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Siyao Meng
            Assignee: Siyao Meng


The address was missing a '/' at the end. But {{Fatal internal error}} 
shouldn't be the right response:

{code}
bash-4.2$ ozone fs -put README.md o3fs://buck1.vol1.om
-put: Fatal internal error
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.base/java.lang.String.substring(String.java:1841)
        at 
org.apache.hadoop.fs.ozone.BasicOzoneFileSystem.pathToKey(BasicOzoneFileSystem.java:751)
        at 
org.apache.hadoop.fs.ozone.BasicOzoneFileSystem.getFileStatus(BasicOzoneFileSystem.java:710)
        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1683)
        at org.apache.hadoop.fs.shell.PathData.parentExists(PathData.java:245)
        at 
org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:224)
        at 
org.apache.hadoop.fs.shell.CopyCommands$Put.processArguments(CopyCommands.java:290)
        at 
org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:120)
        at org.apache.hadoop.fs.shell.Command.run(Command.java:177)
        at org.apache.hadoop.fs.FsShell.run(FsShell.java:327)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
        at org.apache.hadoop.fs.ozone.OzoneFsShell.main(OzoneFsShell.java:80)
{code}



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

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

Reply via email to