[MINOR] Fix the docs for share group metric functions (#19023)

The last commit in this class mistakenly described the functions to be
for Streams Groups. Just a minor update.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Apoorv Mittal <apoorvmittal10@gmail.com>, Sushant Mahajan <smahajan@confluent.io>
This commit is contained in:
Sanskar Jhajharia 2025-02-25 15:46:00 +05:30 committed by GitHub
parent 1edc30bf30
commit b2f0d92c45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public class GroupCoordinatorMetricsShard implements CoordinatorMetricsShard {
* that updates the metrics in {@link org.apache.kafka.coordinator.group.GroupCoordinatorShard}.
* Breaking this will result in inconsistent behavior.
*
* @param shareGroupGauges The map counting the number of streams groups in each state.
* @param shareGroupGauges The map counting the number of share groups in each state.
*/
public void setShareGroupGauges(Map<ShareGroupState, Long> shareGroupGauges) {
this.shareGroupGauges = shareGroupGauges;
@ -267,7 +267,7 @@ public class GroupCoordinatorMetricsShard implements CoordinatorMetricsShard {
}
/**
* @return The total number of streams groups.
* @return The total number of share groups.
*/
public long numShareGroups() {
return shareGroupGauges.values().stream()