Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Changes to UpdateMetadataRequest

The version will be incremented to 2 from 1 and rack will be included. UpdateMetadataRequest understands version and the serialization for Broker are done in different ways for version 0 and version 1. For version 0, only broker ID, host and port will be serialized. For version 1 onwards, the complete Broker object will be serialized. This is done by calling Broker.writeTo and Broker.readFrom. Therefore, for version 1 2 the rack information will be automatically handled and the the serialization format is the same as the above.

...