You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2012/10/22 21:30:13 UTC

[jira] [Created] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Chris Nauroth created HADOOP-8961:
-------------------------------------

             Summary: GenericOptionsParser URI parsing failure on Windows
                 Key: HADOOP-8961
                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
             Project: Hadoop Common
          Issue Type: Bug
          Components: util
    Affects Versions: trunk-win
            Reporter: Chris Nauroth
            Assignee: Chris Nauroth


This appears to be a mishandling of a path that starts with a drive specification on Windows.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Chris Nauroth (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482401#comment-13482401 ] 

Chris Nauroth commented on HADOOP-8961:
---------------------------------------

+1

The patch applies cleanly on branch-trunk-win, and I confirmed that TestGenericOptionsParser passes on both Mac and Windows.
                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482236#comment-13482236 ] 

Hadoop QA commented on HADOOP-8961:
-----------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12550427/HADOOP-8961.brunch-trunk-win.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-common-project/hadoop-common.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1662//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1662//console

This message is automatically generated.
                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Mitic updated HADOOP-8961:
-------------------------------

    Status: Patch Available  (was: Open)
    
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Mitic reassigned HADOOP-8961:
----------------------------------

    Assignee: Ivan Mitic  (was: Chris Nauroth)
    
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Ivan Mitic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Mitic updated HADOOP-8961:
-------------------------------

    Attachment: HADOOP-8961.brunch-trunk-win.patch

This test was fixed in branch-1-win with HADOOP-8409.

Porting the relevant portion of the patch to trunk.
                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suresh Srinivas updated HADOOP-8961:
------------------------------------

       Resolution: Fixed
    Fix Version/s: trunk-win
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Committed to branch-trunk-win. Thank you Ivan.
                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>             Fix For: trunk-win
>
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Chris Nauroth (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481699#comment-13481699 ] 

Chris Nauroth commented on HADOOP-8961:
---------------------------------------

{code}
testFilesOption(org.apache.hadoop.util.TestGenericOptionsParser)  Time elapsed: 328 sec  <<< ERROR!
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\hdc\hadoop-common-project\hadoop-common\target\test\data\generic\tmpfile
	at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:380)
	at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:294)
	at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:422)
	at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:168)
	at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:151)
	at org.apache.hadoop.util.TestGenericOptionsParser.testFilesOption(TestGenericOptionsParser.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\hdc\hadoop-common-project\hadoop-common\target\test\data\generic\tmpfile
	at java.net.URI$Parser.fail(URI.java:2810)
	at java.net.URI$Parser.checkChars(URI.java:2983)
	at java.net.URI$Parser.parse(URI.java:3020)
	at java.net.URI.<init>(URI.java:577)
	at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:378)
	... 30 more
{code}

                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484211#comment-13484211 ] 

Suresh Srinivas commented on HADOOP-8961:
-----------------------------------------

+1 for the patch.
                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8961.brunch-trunk-win.patch
>
>
> This appears to be a mishandling of a path that starts with a drive specification on Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira