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

arun kumar commented on HADOOP-19577:
-------------------------------------

Hello [~ganeshas] I would like to work on this issue. Could you please grant me 
the Contributor role for the HADOOP project and assign this ticket to me? My 
ASF Jira username is: arunkkumar I have reproduced the bug on the latest trunk 
and prepared a safe, targeted fix in FileSystem.checkPath(...) that adds a 
helpful diagnostic hint when a stray '//' drops the path's authority. I have 
also updated the unit tests and am ready to submit a Pull Request. Thanks!

> Improve error message when the path contains double slash without a preceding 
> authority or bucket name
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-19577
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19577
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ganesha S
>            Priority: Minor
>
> Currently, we display the following error message when a path contains a 
> double slash without a preceding authority or bucket name. 
> {code:java}
> java.lang.IllegalArgumentException: Wrong FS: s3://test_file.json.gz, 
> expected: s3://test_bucket/ at 
> org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:824) at 
> org.apache.hadoop.fs.FileSystem.makeQualified(FileSystem.java:683){code}
> The path used in the above case is s3://test_bucket{*}//{*}test_file.json.gz. 
> It is expected that Hadoop will treat the path name preceding the double 
> slash (//) as a bucket or authority because, according to HADOOP-8087, a 
> relative reference that begins with two slash characters is termed a 
> network-path reference.
> Created this Jira to evaluate printing the full path in the error message or 
> to revise the error message when the path contains a double slash without a 
> preceding authority or bucket name for easier debugging. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to