Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7715

FSUtils#waitOnSafeMode can incorrectly loop on standby NN

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.4
    • Fix Version/s: 0.94.5, 0.95.0
    • Component/s: None
    • Labels:
      None

      Description

      We encountered an issue where HMaster failed to start with an active NN not in safe mode and a standby NN in safemode. The relevant lines in FSUtils.java show the issue:

          while (dfs.setSafeMode(org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction.SAFEMODE_GET)) {
      

      This call skips the normal client failover from the standby to active NN, so it will loop polling the standby NN if it unfortunately talks to the standby first.

        Attachments

        1. 7715-94.txt
          3 kB
          Ted Yu
        2. 7715-trunk-v2.txt
          2 kB
          Ted Yu
        3. 7715-trunk-v3.txt
          3 kB
          Ted Yu

          Issue Links

            Activity

              People

              • Assignee:
                yuzhihong@gmail.com Ted Yu
                Reporter:
                andrew.wang Andrew Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: