Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88EC61079F for ; Fri, 7 Jun 2013 21:40:20 +0000 (UTC) Received: (qmail 25454 invoked by uid 500); 7 Jun 2013 21:40:20 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 25426 invoked by uid 500); 7 Jun 2013 21:40:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 25417 invoked by uid 99); 7 Jun 2013 21:40:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2013 21:40:20 +0000 Date: Fri, 7 Jun 2013 21:40:20 +0000 (UTC) From: "Chuan Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-9632) TestShellCommandFencer will fail if there is a 'host' machine in the network MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9632?page=3Dcom.atlassi= an.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. Th= ere is no lost in test coverage because we still test 'host' and 'port' set= tings, and 'host' and 'port' are obtained via address.getHost() and address= .getPort(). =20 > TestShellCommandFencer will fail if there is a 'host' machine in the netw= ork > -------------------------------------------------------------------------= --- > > 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 =E2=80=98hos= t=E2=80=99 in the network. The %target_address% environment variable used i= n the test was from result of InetSocketAddress.getAddress(). The method wi= ll 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 n= o ip in the address. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira