cmccabe opened a new pull request #10753: URL: https://github.com/apache/kafka/pull/10753
Support the KIP-455 reassignment API when in KRaft mode. Reassignments which merely rearrange partitions complete immediately. Those that only remove a partition complete immediately if the ISR would be non-empty after the specified removals. Reassignments that add one or more partitions follow the KIP-455 pattern of adding all the adding replicas to the replica set, and then waiting for the ISR to include all the new partitions before completing. Changes to the partition sets are accomplished via PartitionChangeRecord. Add support for the ReassigningPartitions metric, which tracks the number of partitions which are currently reassigning. This metric is only exposed when running in standalone mode, to avoid conflicting with the broker metric. In TimelineInteger and TimelineLong, replace increment with incrementAndGet, and add an addAndGet function. Similar for decrement / subtraction. This makes updating metrics more convenient. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org