kafka/group-coordinator
Dongnuo Lyu cbc02e006d
KAFKA-16106; Schedule timeout task to refresh classic group size metric (#17325)
In the existing implementation, If an operation modifying the classic group state fails, the group reverts but the group size counter does not. This creates an inconsistency between the group size metric and the actual group size.

Considering that It will be complicated to rely on the appendFuture to revert the metrics upon the operation failure, this PR introduces a new implementation. A timeout task will periodically refresh the metrics based on the current groups soft state. The refreshing interval is hardcoded to 60 seconds.

Reviewers: David Jacot <djacot@confluent.io>
2024-10-04 00:31:06 -07:00
..
group-coordinator-api/src/main/java/org/apache/kafka/coordinator/group/api/assignor KAFKA-16944; Rewrite Range Assignor (#16504) 2024-07-04 10:33:09 -07:00
src KAFKA-16106; Schedule timeout task to refresh classic group size metric (#17325) 2024-10-04 00:31:06 -07:00
.gitignore KAFKA-14363; Add new `group-coordinator` module (KIP-848) (#12827) 2022-11-09 08:49:57 +01:00