Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4268

Remove redundant enum NNHAStatusHeartbeat.State

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: namenode
    • Labels:
      None

      Description

      NNHAStatusHeartbeat.State is redundant and can be replaced with commonly used enum HAServiceState.
      We should also consistently use HAServiceState to check if the state is ACTIVE or STANDBY rather than using instanceof.

      1. heartbeatHAState.patch
        13 kB
        Konstantin Shvachko
      2. heartbeatHAState.patch
        11 kB
        Konstantin Shvachko

        Activity

          People

          • Assignee:
            Konstantin Shvachko
            Reporter:
            Konstantin Shvachko
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development