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

Disallow manual failover to already active NN when auto failover is enabled

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: auto-failover
    • Labels:

      Description

      If nn1 is active and nn2 is standby "hdfs haadmin -failover nn2 nn1" says that failover to nn1 is successful even though nn1 is already active. When only manual failover is active, there is a check that tells users that the user can't failover to an already active service. We should have the same check for auto failover.

      bash-4.1$ hdfs haadmin -failover nn2 nn1
      Failover to NameNode at brut01.sf.cloudera.com/172.22.35.149:17020 successful
      bash-4.1$ hdfs haadmin -failover nn2 nn1
      Failover to NameNode at brut01.sf.cloudera.com/172.22.35.149:17020 successful
      bash-4.1$ hdfs haadmin -failover nn2 nn1
      Failover to NameNode at brut01.sf.cloudera.com/172.22.35.149:17020 successful
      

        Activity

        Hide
        eli Eli Collins added a comment -

        Thanks to Stephen Chu for identifying this bug.

        Show
        eli Eli Collins added a comment - Thanks to Stephen Chu for identifying this bug.
        Hide
        m.sandeep Sandeep added a comment -

        Can I takeover this defect ? Couldn't find how to assign it to myself.

        Show
        m.sandeep Sandeep added a comment - Can I takeover this defect ? Couldn't find how to assign it to myself.
        Hide
        Pooja.Gupta Pooja Gupta added a comment -

        Hi,

        I want to take this up. Please let me know if some one is working on it.

        Thanks,
        Pooja

        Show
        Pooja.Gupta Pooja Gupta added a comment - Hi, I want to take this up. Please let me know if some one is working on it. Thanks, Pooja

          People

          • Assignee:
            Unassigned
            Reporter:
            eli Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

            • Created:
              Updated:

              Development