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 "Eli Collins (Created) (JIRA)" <ji...@apache.org> on 2011/11/18 01:15:51 UTC

[jira] [Created] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
----------------------------------------------------------------------------------------

                 Key: HADOOP-7836
                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
             Project: Hadoop Common
          Issue Type: Bug
          Components: ipc, test
    Affects Versions: 0.20.206.0
            Reporter: Eli Collins
            Priority: Minor


TestSaslRPC#testDigestAuthMethodHostBasedToken fails with the following if the localhost.localdomain is listed before localhost in the hosts file.

Testcase: testDigestAuthMethodHostBasedToken took 0.292 sec
        FAILED
null expected:<localhost[]> but was:<localhost[.localdomain]>
junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
        at org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethod(TestSaslRPC.java:384)
        at org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethodHostBasedToken(TestSaslRPC.java:414)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Daryn Sharp commented on HADOOP-7836:
-------------------------------------

This appears to be indicative of a bug that will affect host-based tokens.  I'll look into it today, but if we can't fix it quickly then I guess we can disable and file a followup jira.  Do you know if this issue only occurs in 1.1, or earlier 1.x releases too?
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>         Attachments: hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Eli Collins updated HADOOP-7836:
--------------------------------

    Attachment: hadoop-7836.txt

Patch to disable this case for the time being.

Looks like the branch-1 test for hose-based tokens wasn't forward ported to trunk so no need to update anything there.
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>         Attachments: hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Daryn Sharp commented on HADOOP-7836:
-------------------------------------

I haven't checked but if trunk is indeed missing these tests -- and it's not that they moved? -- then yes we need to port to trunk.
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: HADOOP-7836.patch, hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Eli Collins commented on HADOOP-7836:
-------------------------------------

+1  looks good
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>         Attachments: HADOOP-7836.patch, hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Eli Collins commented on HADOOP-7836:
-------------------------------------

I looked at the trunk test and the forward port didn't add any new tests to this class, couldn't tell if that was on purpose (ie they're covered elsewhere).
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: HADOOP-7836.patch, hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Daryn Sharp updated HADOOP-7836:
--------------------------------

    Attachment: HADOOP-7836.patch

Actually, the test is flawed.  It's using the address the rpc server is reporting to set the service.  However, it is the client's responsibility to set the token service since the server has no way to know exactly what hostname/ip the client used.

Eli, please see if this fixes the issue for you.
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>         Attachments: HADOOP-7836.patch, hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Eli Collins updated HADOOP-7836:
--------------------------------

    Description: 
TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.

null expected:<localhost[]> but was:<localhost[.localdomain]>
junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>

null expected:<[localhost]> but was:<[eli-thinkpad]>
junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>


  was:
TestSaslRPC#testDigestAuthMethodHostBasedToken fails with the following if the localhost.localdomain is listed before localhost in the hosts file.

Testcase: testDigestAuthMethodHostBasedToken took 0.292 sec
        FAILED
null expected:<localhost[]> but was:<localhost[.localdomain]>
junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
        at org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethod(TestSaslRPC.java:384)
        at org.apache.hadoop.ipc.TestSaslRPC.testDigestAuthMethodHostBasedToken(TestSaslRPC.java:414)


    
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-7836) TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain

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

Eli Collins resolved HADOOP-7836.
---------------------------------

          Resolution: Fixed
       Fix Version/s: 1.2.0
    Target Version/s:   (was: 1.1.0)

I've committed this, thanks Daryn!

Do we need a jira for the same test forward ported to trunk?
                
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7836
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7836
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>    Affects Versions: 1.1.0
>            Reporter: Eli Collins
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: HADOOP-7836.patch, hadoop-7836.txt
>
>
> TestSaslRPC#testDigestAuthMethodHostBasedToken fails on branch-1 on some hosts.
> null expected:<localhost[]> but was:<localhost[.localdomain]>
> junit.framework.ComparisonFailure: null expected:<localhost[]> but was:<localhost[.localdomain]>
> null expected:<[localhost]> but was:<[eli-thinkpad]>
> junit.framework.ComparisonFailure: null expected:<[localhost]> but was:<[eli-thinkpad]>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira