hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7290) Add HTTP response code to the HttpPutFailedException message
Date Sun, 26 Oct 2014 14:08:33 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184494#comment-14184494
] 

Harsh J commented on HDFS-7290:
-------------------------------

Failed test sources appear unrelated and the failure appears to be due to a MiniDFSCluster
timeout:

{code}
java.io.IOException: Timed out waiting for Mini HDFS Cluster to start
	at org.apache.hadoop.hdfs.MiniDFSCluster.waitClusterUp(MiniDFSCluster.java:1194)
	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:829)
	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:465)
	at org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:424)
	at org.apache.hadoop.hdfs.TestWriteConfigurationToDFS.testWriteConf(TestWriteConfigurationToDFS.java:39)
{code}

> 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
>         Attachments: HDFS-7290.patch
>
>
> If the TransferFsImage#uploadImageFromStorage(…) call fails for some reason, we try
to print back the reason of the connection failure.
> We currently only grab connection.getResponseMessage(…) and use that 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 always 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)

Mime
View raw message