Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06A2317606 for ; Sun, 26 Oct 2014 02:50:39 +0000 (UTC) Received: (qmail 35354 invoked by uid 500); 26 Oct 2014 02:50:34 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 35246 invoked by uid 500); 26 Oct 2014 02:50:34 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 35133 invoked by uid 99); 26 Oct 2014 02:50:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2014 02:50:33 +0000 Date: Sun, 26 Oct 2014 02:50:33 +0000 (UTC) From: "Harsh J (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-7290) Add HTTP response code to the HttpPutFailedException message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Harsh J created HDFS-7290: ----------------------------- Summary: Add HTTP response code to the HttpPutFailedException = message Key: HDFS-7290 URL: https://issues.apache.org/jira/browse/HDFS-7290 Project: Hadoop HDFS Issue Type: New Feature Components: namenode Affects Versions: 2.5.0 Reporter: Harsh J Assignee: Harsh J Priority: Minor If the TransferFsImage#uploadImageFromStorage(=E2=80=A6) call fails for som= e reason, we try to print back the reason of the connection failure. We currently only grab connection.getResponseMessage(=E2=80=A6) and use tha= t as our exception's lone string, but this can often be empty if there was = no real response message from the connection end. However, the failures alw= ays have a code, so we should also ensure to print the error code returned,= for at least a partial hint. -- This message was sent by Atlassian JIRA (v6.3.4#6332)