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

[SBN read] ZKFC should check the state before joining the election

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      As discussed HDFS-14961, ZKFC should not join election when its state is observer.

      Right now when namemode was an observer, it joined election and it would be become a standby.

      MonitorDaemon thread callchain is that
      doHealthChecks -> enterState(State.SERVICE_HEALTHY) -> recheckElectability() -> elector.joinElection(targetToData(localTarget)) -> joinElectionInternal -> createLockNodeAsync

      callBack for zookeeper
      processResult -> becomeStandby

      Attachments

        1. HDFS-15023.001.patch
          0.9 kB
          Hui Fei
        2. HDFS-15023.002.patch
          4 kB
          Hui Fei
        3. HDFS-15023.003.patch
          5 kB
          Hui Fei
        4. HDFS-15023.004.patch
          5 kB
          Hui Fei
        5. HDFS-15023.005.patch
          4 kB
          Hui Fei

        Issue Links

          Activity

            People

              ferhui Hui Fei
              ferhui Hui Fei
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: