[ 
https://issues.apache.org/jira/browse/HDFS-11494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yiqun Lin updated HDFS-11494:
-----------------------------
    Attachment: HDFS-11494.001.patch

Patch attached. The sample output log:
{code}
2017-03-03 21:06:01,026 [main] DEBUG  blockmanagement.DatanodeDescriptor 
(DatanodeDescriptor.java:chooseStorage4Block(681)) - The node 127.0.0.1:9866 
does not have enough DISK space (required=10, scheduled=0, remaining=0).
{code}

> Log message when DN is not selected for block replication
> ---------------------------------------------------------
>
>                 Key: HDFS-11494
>                 URL: https://issues.apache.org/jira/browse/HDFS-11494
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-11494.001.patch
>
>
> In HDFS-8946, a important message was removed.
> {code}
> if (requiredSize > remaining - scheduledSize) {
>       logNodeIsNotChosen(storage, "the node does not have enough "
>           + storage.getStorageType() + " space"
>           + " (required=" + requiredSize
>           + ", scheduled=" + scheduledSize
>           + ", remaining=" + remaining + ")");
>       return false;
>     }
> {code}
> This log is important since it can tell us why DN is not selected for block 
> replication. And it will be good for us to debug issues.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to