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

Revert HDFS-5079. Cleaning up NNHAStatusHeartbeat.State DatanodeProtocolProtos.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: rolling upgrades
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      Hide
      HDFS-5079 was reverted since it introduced incompatible protocol changes that blocked rolling upgrade.
      Show
      HDFS-5079 was reverted since it introduced incompatible protocol changes that blocked rolling upgrade.

      Description

      HDFS-5079 changed the meaning of state in NNHAStatusHeartbeat when it added in the INITIALIZING state via HAServiceStateProto.

      Before change:

      enum State {
         ACTIVE = 0;
         STANDBY = 1;
      }
      

      After change:

      enum HAServiceStateProto {
        INITIALIZING = 0;
        ACTIVE = 1;
        STANDBY = 2;
      }
      

      So the new INITIALIZING state will be interpreted as ACTIVE, new ACTIVE interpreted as STANDBY and new STANDBY interpreted as unknown. Any rolling upgrade to 3.0.0 will break because the datanodes that haven't been updated will misinterpret the NN state.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ebadger Eric Badger
                Reporter:
                ebadger Eric Badger
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: