You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Uma Maheswara Rao G (Created) (JIRA)" <ji...@apache.org> on 2012/01/27 16:36:11 UTC

[jira] [Created] (HDFS-2851) After Balancer runs, usedSpace is not balancing correctly.

After Balancer runs, usedSpace is not balancing correctly.
----------------------------------------------------------

                 Key: HDFS-2851
                 URL: https://issues.apache.org/jira/browse/HDFS-2851
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Uma Maheswara Rao G
            Assignee: Uma Maheswara Rao G


After Balancer runs, usedSpace is not balancing correctly.

{code}
java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2851) HA: After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195786#comment-13195786 ] 

Uma Maheswara Rao G commented on HDFS-2851:
-------------------------------------------

I am thinking about this issue. When switch happens currently we will mark the blocks as stale for the nodes. Whenever process transitioned from standbyToActive, if we trigger one block report, then that particular node status will be marked as normal. So, it will process the OverReplicated blocks normally instead of postponing till next block report.

Todd, is there any design constraint we have currently to trigger block report when NN switched from standby to active state?
                
> HA: After Balancer runs, usedSpace is not balancing correctly.
> --------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) HA: Optimize stale block processing by triggering block reports immediately on failover

Posted by "Aaron T. Myers (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HDFS-2851:
---------------------------------

    Issue Type: Improvement  (was: Sub-task)
        Parent:     (was: HDFS-1623)
    
> HA: Optimize stale block processing by triggering block reports immediately on failover
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: 0.24.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) HA: Optimize stale block processing by triggering block reports immediately on failover

Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated HDFS-2851:
--------------------------------------

    Summary: HA: Optimize stale block processing by triggering block reports immediately on failover  (was: HA: After Balancer runs, usedSpace is not balancing correctly.)
    
> HA: Optimize stale block processing by triggering block reports immediately on failover
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2851) After Balancer runs, usedSpace is not balancing correctly.

Posted by "Eli Collins (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195215#comment-13195215 ] 

Eli Collins commented on HDFS-2851:
-----------------------------------

Wonder if this is fixed by HDFS-1105. Would be good to update that patch on trunk and get it in.
                
> After Balancer runs, usedSpace is not balancing correctly.
> ----------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated HDFS-2851:
--------------------------------------

          Component/s: name-node
                       ha
                       data-node
                       balancer
    Affects Version/s: HA branch (HDFS-1623)
    
> After Balancer runs, usedSpace is not balancing correctly.
> ----------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2851) HA: After Balancer runs, usedSpace is not balancing correctly.

Posted by "Aaron T. Myers (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213376#comment-13213376 ] 

Aaron T. Myers commented on HDFS-2851:
--------------------------------------

Hey Uma, I'm not sure I would exactly qualify this as a bug, since the balancer does indeed eventually succeed once all DNs have sent block reports, as indicated by the test you did where you lowered the heartbeat period.

I agree with you that the only way to fix this issue would be to cause the DNs to heartbeat promptly after a failover, though that's an optimization that has other benefits besides just making the balancer's used space determination get updated faster. Perhaps we could, then, change the title of this JIRA to something like "HA: Optimize stale block processing by triggering block reports immediately on failover" ?
                
> HA: After Balancer runs, usedSpace is not balancing correctly.
> --------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated HDFS-2851:
--------------------------------------

    Attachment: HDFS-2851-HDFS-1623-Test.patch

Attached the patch with test assertion to reproduce this issue.
                
> After Balancer runs, usedSpace is not balancing correctly.
> ----------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2851) HA: After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220235#comment-13220235 ] 

Uma Maheswara Rao G commented on HDFS-2851:
-------------------------------------------

Aaron, Thanks a lot for taking a look. I will update the title as you suggested.
                
> HA: After Balancer runs, usedSpace is not balancing correctly.
> --------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HDFS-2851) After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195323#comment-13195323 ] 

Uma Maheswara Rao G commented on HDFS-2851:
-------------------------------------------

Hi Eli, This particular issue is happening only in branch. This case works fine in trunk.

As for the initial look, There are 2 DNs(DN1,DN2) registered with NN initial block report also sent. After NN transitioned to active all blocks will be marked as stale until next block report comes from this DNs. One new DN (DN3) added , this particular DN registered with active NN sucessfully. When we run the balancer, it needs to move some blocks here and there to balance the cluster. Some blocks came to old DNs, and needs to process OverReplicated blocks as well. I think there is no immediate next block report after transitioned to active (this point need to confirm , whether we are triggering the block report immediately after transitioned to active or not), So the blocks was still in stale mode. Processing overReplicated blocks are getting postponed due to this reason. Since this nodes not processed OverReplicated blocks , used space is little high than expected. [ usedSpace (current: 390, expected: 300)]

I just reduced the block report interval to very less (10s), then this particular case is passing.

Thanks
Uma
                
> After Balancer runs, usedSpace is not balancing correctly.
> ----------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) HA: Optimize stale block processing by triggering block reports immediately on failover

Posted by "Aaron T. Myers (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron T. Myers updated HDFS-2851:
---------------------------------

     Target Version/s: 0.24.0
    Affects Version/s:     (was: HA branch (HDFS-1623))
                       0.24.0

Converting to top-level issue with commit of HDFS-1623.
                
> HA: Optimize stale block processing by triggering block reports immediately on failover
> ---------------------------------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: 0.24.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2851) HA: After Balancer runs, usedSpace is not balancing correctly.

Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated HDFS-2851:
--------------------------------------

    Summary: HA: After Balancer runs, usedSpace is not balancing correctly.  (was: After Balancer runs, usedSpace is not balancing correctly.)
    
> HA: After Balancer runs, usedSpace is not balancing correctly.
> --------------------------------------------------------------
>
>                 Key: HDFS-2851
>                 URL: https://issues.apache.org/jira/browse/HDFS-2851
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer, data-node, ha, name-node
>    Affects Versions: HA branch (HDFS-1623)
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         Attachments: HDFS-2851-HDFS-1623-Test.patch
>
>
> After Balancer runs, usedSpace is not balancing correctly.
> {code}
> java.util.concurrent.TimeoutException: Cluster failed to reached expected values of totalSpace (current: 1500, expected: 1500), or usedSpace (current: 390, expected: 300), in more than 20000 msec.
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancer.waitForHeartBeat(TestBalancer.java:233)
> 	at org.apache.hadoop.hdfs.server.balancer.TestBalancerWithHANameNodes.testBalancerWithHANameNodes(TestBalancerWithHANameNodes.java:99)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira