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 "Chuan Liu (JIRA)" <ji...@apache.org> on 2013/06/07 23:40:20 UTC

[jira] [Updated] (HADOOP-9632) TestShellCommandFencer will fail if there is a 'host' machine in the network

     [ https://issues.apache.org/jira/browse/HADOOP-9632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chuan Liu updated HADOOP-9632:
------------------------------

    Attachment: HADOOP-9632.patch

Attaching a simple fix. I simply remove the pattern matching on address. There is no lost in test coverage because we still test 'host' and 'port' settings, and 'host' and 'port' are obtained via address.getHost() and address.getPort().
                
> TestShellCommandFencer will fail if there is a 'host' machine in the network
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-9632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9632
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.1.0-beta
>            Reporter: Chuan Liu
>            Assignee: Chuan Liu
>            Priority: Minor
>         Attachments: HADOOP-9632.patch
>
>
> TestShellCommandFencer will fail if there is a machine named ‘host’ in the network. The %target_address% environment variable used in the test was from result of InetSocketAddress.getAddress(). The method will return 'host/ip' instead of only 'host' when the host actually exists in the network. When the test comparing the log output, it assumes there is no ip in the address.

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