Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3846

Namenode deadlock in branch-1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0, 1.2.0
    • 1.1.1
    • namenode
    • None

    Description

      Jitendra found out the following problem:
      1. Handler : Acquires namesystem lock waits on SafemodeInfo lock at SafeModeInfo.isOn()
      2. SafemodeMonitor : Calls SafeModeInfo.canLeave() which is synchronized so SafemodeInfo lock is acquired, but this method also causes following call sequence needEnter() -> getNumLiveDataNodes() -> getNumberOfDatanodes() -> getDatanodeListForReport() -> getDatanodeListForReport() . The getDatanodeListForReport is synchronized with FSNamesystem lock.

      Attachments

        1. HDFS-3846.branch-1.patch
          1 kB
          Brandon Li

        Issue Links

          Activity

            People

              brandonli Brandon Li
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: