hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anu Engineer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10808) DiskBalancer does not execute multi-steps plan- redux
Date Fri, 26 Aug 2016 22:54:21 GMT

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

Anu Engineer commented on HDFS-10808:

[~eddyxu] Sure.  I think the change needed was -- 
 for (Map.Entry<VolumePair, DiskBalancerWorkItem> entry :
            workMap.entrySet()) {
          blockMover.copyBlocks(entry.getKey(), entry.getValue());

The missing line was the clearExitFlag. No real changes are needed in the copyBlocks path.

Also we seem to introduced some unintended side effects like some lines becoming no-op. For
if (!shouldRun()) {

Looks like the intend of the patch was to remove the setExitFlag usage in copyBlocks, but
we reintroduced that in the try \{..} finally \{..} block.  I also wanted to add a unit test
with multiple volumes in a single machine where balancing happens to check for this kind of
failure in future.


> DiskBalancer does not execute multi-steps plan- redux
> -----------------------------------------------------
>                 Key: HDFS-10808
>                 URL: https://issues.apache.org/jira/browse/HDFS-10808
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer & mover
>            Reporter: Anu Engineer
>            Assignee: Anu Engineer
> This is to redo of the fix in HDFS-10598

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message