hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2553) BlockPoolSliceScanner spinning in loop
Date Mon, 14 Nov 2011 23:23:52 GMT

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

Todd Lipcon commented on HDFS-2553:
-----------------------------------

this is a kind of stupid bug that's easy to repro:
- start a DN on an empty file system
- put one block on the DN
- delete the block

the scanner then gets in a loop, since this.isFirstBlockProcessed() returns false in the case
that there are no blocks in the scanner. Putting a block back in the DN fixes it.
                
> BlockPoolSliceScanner spinning in loop
> --------------------------------------
>
>                 Key: HDFS-2553
>                 URL: https://issues.apache.org/jira/browse/HDFS-2553
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: data-node
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: Todd Lipcon
>            Priority: Critical
>
> Playing with trunk, I managed to get a DataNode in a situation where the BlockPoolSliceScanner
is spinning in the following loop, using 100% CPU:
>         at org.apache.hadoop.hdfs.server.datanode.DataNode$BPOfferService.isAlive(DataNode.java:820)
>         at org.apache.hadoop.hdfs.server.datanode.DataNode.isBPServiceAlive(DataNode.java:2962)
>         at org.apache.hadoop.hdfs.server.datanode.BlockPoolSliceScanner.scan(BlockPoolSliceScanner.java:625)
>         at org.apache.hadoop.hdfs.server.datanode.BlockPoolSliceScanner.scanBlockPoolSlice(BlockPoolSliceScanner.java:614)
>         at org.apache.hadoop.hdfs.server.datanode.DataBlockScanner.run(DataBlockScanner.java:95)

--
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

        

Mime
View raw message