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

Namenode deadlock during safemode extention

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 2.2.0, 3.0.0-alpha1
    • None
    • None
    • None

    Description

      Namenode entered to safemode during restart

      1. After restart NN entered to safemode extention.
      2. During this time deadlock happened between datanode heartbeat and SafemodeMonitor() thread.

      Found one Java-level deadlock:
      =============================
      "org.apache.hadoop.hdfs.server.namenode.FSNamesystem$SafeModeMonitor@9fe953":
      waiting to lock monitor 0x18c3b42c (object 0x0439c6f8, a java.util.TreeMap),
      which is held by "IPC Server handler 2 on 62212"
      "IPC Server handler 2 on 62212":
      waiting to lock monitor 0x18c3987c (object 0x043849a0, a org.apache.hadoop.hdfs.server.namenode.FSNamesystem$SafeModeInfo),
      which is held by "org.apache.hadoop.hdfs.server.namenode.FSNamesystem$SafeModeMonitor@9fe953"

      Check attached jstack for complete stack

      Attachments

        1. HDFS-5368.patch
          1 kB
          Vinayakumar B
        2. NN-deadlock.zip
          5 kB
          Vinayakumar B

        Issue Links

          Activity

            People

              vinayakumarb Vinayakumar B
              vinayakumarb Vinayakumar B
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: