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 "xieguiming (JIRA)" <ji...@apache.org> on 2012/06/19 10:40:43 UTC

[jira] [Created] (HADOOP-8514) Failed tests: testLocalHostNameForNullOrWild

xieguiming created HADOOP-8514:
----------------------------------

             Summary: Failed tests:   testLocalHostNameForNullOrWild
                 Key: HADOOP-8514
                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
             Project: Hadoop Common
          Issue Type: Bug
          Components: security
    Affects Versions: 0.23.1
            Reporter: xieguiming
            Priority: Minor


Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
We can modify like this:

{code:title=TestSecurityUtil.java|borderStyle=solid}
  @Test
  public void testLocalHostNameForNullOrWild() throws Exception {
    // add toLowerCase() here    
    String local = SecurityUtil.getLocalHostName().toLowerCase();
    assertEquals("hdfs/" + local + "@REALM",
                 SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
    assertEquals("hdfs/" + local + "@REALM",
                 SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
  }
{code} 

--
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-8514) Failed tests: testLocalHostNameForNullOrWild

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

Aaron T. Myers commented on HADOOP-8514:
----------------------------------------

Hi xieguiming, TestSecurityUtil#testLocalHostNameForNullOrWild passes for me on my local box. What environment do you see this test failing in?

Also, please attach a patch file containing the diff if you have a fix for this issue, rather than including it in the JIRA description.
                
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.23.1
>            Reporter: xieguiming
>            Priority: Minor
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
> We can modify like this:
> {code:title=TestSecurityUtil.java|borderStyle=solid}
>   @Test
>   public void testLocalHostNameForNullOrWild() throws Exception {
>     // add toLowerCase() here    
>     String local = SecurityUtil.getLocalHostName().toLowerCase();
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
>   }
> {code} 

--
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-8514) Failed tests: testLocalHostNameForNullOrWild

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

Steven Willis updated HADOOP-8514:
----------------------------------

    Attachment: HADOOP-8514.patch

Here's a patch for xieguiming
                
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.23.1, 2.0.0-alpha
>            Reporter: xieguiming
>            Priority: Minor
>         Attachments: HADOOP-8514.patch
>
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
> We can modify like this:
> {code:title=TestSecurityUtil.java|borderStyle=solid}
>   @Test
>   public void testLocalHostNameForNullOrWild() throws Exception {
>     // add toLowerCase() here    
>     String local = SecurityUtil.getLocalHostName().toLowerCase();
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
>     assertEquals("hdfs/" + local + "@REALM",
>                  SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
>   }
> {code} 

--
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-8514) Failed tests: testLocalHostNameForNullOrWild

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

Steven Willis updated HADOOP-8514:
----------------------------------

          Description: Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.  (was: Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.
We can modify like this:

{code:title=TestSecurityUtil.java|borderStyle=solid}
  @Test
  public void testLocalHostNameForNullOrWild() throws Exception {
    // add toLowerCase() here    
    String local = SecurityUtil.getLocalHostName().toLowerCase();
    assertEquals("hdfs/" + local + "@REALM",
                 SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", (String) null));
    assertEquals("hdfs/" + local + "@REALM",
                 SecurityUtil.getServerPrincipal("hdfs/_HOST@REALM", "0.0.0.0"));
  }
{code} )
    Affects Version/s: 2.0.0-alpha

Removing code from description since there's now a patch.
                
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 0.23.1, 2.0.0-alpha
>            Reporter: xieguiming
>            Priority: Minor
>         Attachments: HADOOP-8514.patch
>
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.

--
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-8514) Failed tests: testLocalHostNameForNullOrWild

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

Hadoop QA commented on HADOOP-8514:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12537207/HADOOP-8514.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common:

                  org.apache.hadoop.ha.TestZKFailoverController

    +1 contrib tests.  The patch passed contrib unit tests.

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

This message is automatically generated.
                
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.0.0-alpha
>            Reporter: xieguiming
>            Priority: Minor
>         Attachments: HADOOP-8514.patch
>
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.

--
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-8514) Failed tests: testLocalHostNameForNullOrWild

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

Steven Willis updated HADOOP-8514:
----------------------------------

     Target Version/s: 2.0.0-alpha
    Affects Version/s:     (was: 0.23.1)
               Status: Patch Available  (was: Open)
    
> Failed tests:   testLocalHostNameForNullOrWild
> ----------------------------------------------
>
>                 Key: HADOOP-8514
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8514
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.0.0-alpha
>            Reporter: xieguiming
>            Priority: Minor
>         Attachments: HADOOP-8514.patch
>
>
> Because of HADOOP-7988, and testLocalHostNameForNullOrWild failed.

--
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