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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Done
    • 3.0.0-alpha1
    • 3.0.0-alpha2
    • rolling upgrades
    • None
    • 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

        1. HDFS-11207.001.patch
          0.6 kB
          Eric Badger

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: