kafka/gradle
PoAn Yang a1008dc85d
KAFKA-17747: [2/N] Add compute topic and group hash (#19523)
* Add `com.dynatrace.hash4j:hash4j:0.22.0` to dependencies.
* Add `computeTopicHash` to `org.apache.kafka.coordinator.group.Utils`.
  * If topic name is non-existent, return 0.
  * If topic name is existent, use streaming XXH3 to compute topic hash
with magic byte, topic id, topic name, number of partitions, partition
id and sorted racks.
* Add `computeGroupHash` to `org.apache.kafka.coordinator.group.Utils`.
  * If topic map is empty, return 0.
  * If topic map is not empty, use streaming XXH3 to compute group
metadata hash with sorted topic hashes by topic names.
* Add related unit test.

Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>, Sean Quah <squah@confluent.io>, David Jacot <djacot@confluent.io>

---------

Signed-off-by: PoAn Yang <payang@apache.org>
2025-05-15 10:48:45 +02:00
..
resources KAFKA-18050 Upgrade the checkstyle version to 10.20.2 (#17999) 2024-12-05 10:59:18 +08:00
wrapper KAFKA-17974 Upgrade gradle from 8.10 to 8.10.2 (#17734) 2024-11-11 09:14:04 +08:00
dependencies.gradle KAFKA-17747: [2/N] Add compute topic and group hash (#19523) 2025-05-15 10:48:45 +02:00
openapi.template KAFKA-13780: Generate OpenAPI file for Connect REST API (#12067) 2022-06-10 11:35:22 +02:00
spotbugs-exclude.xml KAFKA-14486 Move LogCleanerManager to storage module (#19216) 2025-03-27 12:35:38 +08:00