Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1126

Optimize CPU usage when cluster restarts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.12.1
    • None
    • None

    Description

      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.

      Attachments

        1. neededReplicationRemove.patch
          3 kB
          Hairong Kuang

        Activity

          People

            hairong Hairong Kuang
            dhruba Dhruba Borthakur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: