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

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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
          Fei Hui
        2. HDFS-15023.002.patch
          4 kB
          Fei Hui
        3. HDFS-15023.003.patch
          5 kB
          Fei Hui
        4. HDFS-15023.004.patch
          5 kB
          Fei Hui
        5. HDFS-15023.005.patch
          4 kB
          Fei Hui

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: