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
        11 kB
        Konstantin Shvachko
      2. heartbeatHAState.patch
        13 kB
        Konstantin Shvachko

        Activity

        Konstantin Shvachko created issue -
        Konstantin Shvachko made changes -
        Field Original Value New Value
        Attachment heartbeatHAState.patch [ 12556046 ]
        Konstantin Shvachko made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Konstantin Shvachko [ shv ]
        Konstantin Shvachko made changes -
        Attachment heartbeatHAState.patch [ 12556203 ]
        Konstantin Shvachko made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 2.0.3-alpha [ 12323274 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development