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

Tsz Wo (Nicholas), SZE commented on HDFS-1787:
----------------------------------------------

> Question: There was one checkstyle-type whitespace change that wasn't 
> associated with code change. Should that be reverted or is that a welcome 
> change?

If the whitespace/format changes would make it harder for reviewing, they are 
not welcomed.  If there is only one change, it is fine.


> Text.readString can throw IOException. The InternalDataNodeException thrown 
> on the next line is also a subclass of IOException. Behaviorwise it would 
> essentially use the same error recovery path.

However, we will loss the information like socket addresses.

Some comments:
- Please combine them into one message.
{code}
+          DFSClient.LOG.warn("Failed to connect to" + targetAddr +": "
+              + ex.getMessage());
+          DFSClient.LOG.warn(" Adding to deadNodes and continuing");
{code}

- It is better to log the exception.
{code}
+      } catch (IOException e) {
+        // preserve previous semantics, eat the exception.
+      }
{code}

- Do we really need {{internalDNErrors}} and {{getInternalDNErrorCount()}}?  It 
is only used in the tests.

> "Not enough xcievers" error should propagate to client
> ------------------------------------------------------
>
>                 Key: HDFS-1787
>                 URL: https://issues.apache.org/jira/browse/HDFS-1787
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: data-node
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Jonathan Hsieh
>              Labels: newbie
>             Fix For: 0.23.0
>
>         Attachments: hdfs-1787.2.patch, hdfs-1787.3.patch, hdfs-1787.3.patch, 
> hdfs-1787.5.patch, hdfs-1787.patch
>
>
> We find that users often run into the default transceiver limits in the DN. 
> Putting aside the inherent issues with xceiver threads, it would be nice if 
> the "xceiver limit exceeded" error propagated to the client. Currently, 
> clients simply see an EOFException which is hard to interpret, and have to go 
> slogging through DN logs to find the underlying issue.
> The data transfer protocol should be extended to either have a special error 
> code for "not enough xceivers" or should have some error code for generic 
> errors with which a string can be attached and propagated.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to