[
https://issues.apache.org/jira/browse/HADOOP-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White updated HADOOP-1126:
------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I've just committed this. Thanks Hairong!
> Optimize CPU usage when cluster restarts
> ----------------------------------------
>
> Key: HADOOP-1126
> URL: https://issues.apache.org/jira/browse/HADOOP-1126
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.12.0
> Reporter: dhruba borthakur
> Assigned To: Hairong Kuang
> Fix For: 0.12.1
>
> Attachments: neededReplicationRemove.patch
>
>
> When the namenode restarts, all datanodes report their blocks to the
> namenode. The namenode inserts these blocks into neededReplication(). When
> safemode exists, pendingTransfers removes them from neededReplication. This
> is non-optimal because pendingTransfer consumes plenty of CPU just after
> exiting safe-mode.
> The problem is that neededReplications.remove(block) does not remove a block
> if oldExpectedReplicas is exactly equal to oldReplicas.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.