Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 18FB0200B8D for ; Fri, 9 Sep 2016 03:30:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1790B160AD0; Fri, 9 Sep 2016 01:30:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5C95C160AAD for ; Fri, 9 Sep 2016 03:30:42 +0200 (CEST) Received: (qmail 85797 invoked by uid 500); 9 Sep 2016 01:30:41 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 85788 invoked by uid 99); 9 Sep 2016 01:30:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 01:30:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 47C40E058E; Fri, 9 Sep 2016 01:30:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wang@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao. Date: Fri, 9 Sep 2016 01:30:41 +0000 (UTC) archived-at: Fri, 09 Sep 2016 01:30:43 -0000 Repository: hadoop Updated Branches: refs/heads/trunk 011f3b24d -> b07c266dc HDFS-10831. Add log when URLConnectionFactory.openConnection failed. Contributed by yunjiong zhao. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b07c266d Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b07c266d Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b07c266d Branch: refs/heads/trunk Commit: b07c266dca7f303c793b432a0738d593728cf2b3 Parents: 011f3b2 Author: Andrew Wang Authored: Thu Sep 8 18:30:18 2016 -0700 Committer: Andrew Wang Committed: Thu Sep 8 18:30:18 2016 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/b07c266d/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java index 975f72e..96095db 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/URLConnectionFactory.java @@ -183,6 +183,7 @@ public class URLConnectionFactory { return openConnection(url, false); } catch (AuthenticationException e) { // Unreachable + LOG.error("Open connection {} failed", url, e); return null; } } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org