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

Remove redundant enum NNHAStatusHeartbeat.State

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: