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

Remove redundant enum NNHAStatusHeartbeat.State

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-alpha
    • 2.0.3-alpha
    • namenode
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: