Versions Compared

Key

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

...

  1. As the AlterPartition and Fetch requests are shared between ZK and Kraft mode, we can just let the ZK controller ignore the broker epoch field.
  2. The AlterPartition request will be protected by the ApiVersion bump. The brokers can use the controller-supported version accordingly.
  3. The metadata version/IBP version will be bumped . During the upgrade, leaders will leave the broker epoch field as -1 if the broker has not upgraded yet. The controller will skip the validation if the epoch is -1to gate the new version of the Fetch request. After the IBP is upgraded, the new Fetch quest(version 14) will be used.

Test Plan

Will test by simulating the race scenario of the delayed AlterPartitionRequest and the broker reboot.

...