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 029A911CA6 for ; Sat, 6 Sep 2014 01:20:29 +0000 (UTC) Received: (qmail 30687 invoked by uid 500); 6 Sep 2014 01:20:28 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 30635 invoked by uid 500); 6 Sep 2014 01:20:28 -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 30616 invoked by uid 99); 6 Sep 2014 01:20:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Sep 2014 01:20:28 +0000 Date: Sat, 6 Sep 2014 01:20:28 +0000 (UTC) From: "jay vyas (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-11072) better Logging in DNS.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 jay vyas created HADOOP-11072: --------------------------------- Summary: better Logging in DNS.java Key: HADOOP-11072 URL: https://issues.apache.org/jira/browse/HADOOP-11072 Project: Hadoop Common Issue Type: Improvement Affects Versions: 2.4.0, 2.3.0 Reporter: jay vyas Priority: Minor The DNS.java class should be more informative, and possibly fail early when reverse DNS is broken. Right now it is vulnerable to a cryptic ArrayIndex exception. {noformat} parts = hostIp.getHostAddress(....) String reverseIp = parts[3] + parts[2] ... {noformat} During this patch I think we can also improve a couple other minor logging statements in the net package. -- This message was sent by Atlassian JIRA (v6.3.4#6332)