Versions Compared

Key

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

...

2) Update the znodes /brokers/topics/[topic]/partitions/[partition] to use the following json format

Code Block
{
  "version" : int32,
  "partitionspartition_epoch" : {
    int32 -> int32   // partition has type int32. This maps each partition to its partition_epoch
    ..
  }
}

Request/Response protocol

...

When broker creates topic or expand partition, broker should increment the global partition_epoch in the znode /partition_epoch by 1 for each new partition to be created. Thus each partition can be identified by a globally unique partition_epoch. The resulting partition -> partition_epoch mapping for this topic partition should be written in the znode /brokers/topics/[topic]/partitions/[partition].

2) Topic deletion.

When a topic is deleted, the global partition_epoch in the znode /partition_epoch will be incremented by 1. This can help us recognize the more recent metadata after the topic deletion.

...