[
https://issues.apache.org/jira/browse/HDFS-15027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xudong Cao updated HDFS-15027:
------------------------------
Description:
During HDFS balancing, after target DN moves a block from source DN, it prints
a log following the pattern below:
*Moved BLOCK from BALANCER*
But this is wrong and misleading, the right pattern should be:
*Moved BLOCK from SOURCE DN*
An example :
before jira (this is wrong because 192.168.202.13 is the balancer, not source
DN) :
{code:java}
2019-12-02 17:33:19,718 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741889_1065 from
/192.168.202.13:56322, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
after Jira ( this is right, 192.168.202.11 is the real source DN) :
{code:java}
2019-12-02 19:44:39,875 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741956_1132 from
192.168.202.11:9866, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
This is a minor log correction, no need for unit test.
was:
During HDFS balancing, after target DN moves a block from source DN, it prints
a log following the pattern below:
*Moved BLOCK from BALANCER*
But this is wrong and misleading, the right pattern should be:
*Moved BLOCK from SOURCE DN*
An example :
before jira (this is wrong because 192.168.202.13 is the balancer, not source
DN) :
{code:java}
2019-12-02 17:33:19,718 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741889_1065 from
/192.168.202.13:56322, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
after jira :
{code:java}
2019-12-02 19:44:39,875 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741956_1132 from
192.168.202.11:9866, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
This is a minor log correction, no need for unit test.
> Correct target DN's log while balancing.
> ----------------------------------------
>
> Key: HDFS-15027
> URL: https://issues.apache.org/jira/browse/HDFS-15027
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: balancer & mover
> Affects Versions: 3.2.1
> Reporter: Xudong Cao
> Assignee: Xudong Cao
> Priority: Minor
> Attachments: HDFS-15027.000.patch
>
>
> During HDFS balancing, after target DN moves a block from source DN, it
> prints a log following the pattern below:
> *Moved BLOCK from BALANCER*
> But this is wrong and misleading, the right pattern should be:
> *Moved BLOCK from SOURCE DN*
> An example :
> before jira (this is wrong because 192.168.202.13 is the balancer, not source
> DN) :
> {code:java}
> 2019-12-02 17:33:19,718 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
> Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741889_1065 from
> /192.168.202.13:56322, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
> after Jira ( this is right, 192.168.202.11 is the real source DN) :
> {code:java}
> 2019-12-02 19:44:39,875 INFO org.apache.hadoop.hdfs.server.datanode.DataNode:
> Moved BP-1426342230-192.168.202.11-1575277482603:blk_1073741956_1132 from
> 192.168.202.11:9866, delHint=54a14a41-0d7c-4487-b4f0-ce2848f86b48{code}
> This is a minor log correction, no need for unit test.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]