Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1623 High Availability Framework for HDFS NN
  3. HDFS-2823

HA: Transition to active can cause NN deadlock

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • HA branch (HDFS-1623)
    • None
    • ha, namenode
    • None

    Description

      On transition to active, we have to take the FSNS write lock. In EditLogTailer#stop, we interrupt the edit log tailer thread and then join on that thread. When tailing edits, the edit log tailer thread acquires the FSNS write lock interruptibly, precisely so that we avoid deadlocks on transition to active. However, the edit log tailer thread now also triggers edit log rolls. Several places in ipc.Client catch and ignore InterruptedException, and in so doing may cause the Thread#interrupt call to be missed by the edit log tailer thread.

      Attachments

        Issue Links

          Activity

            People

              atm Aaron Myers
              atm Aaron Myers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: