mirror of https://github.com/apache/kafka.git
[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:
parent
1edc30bf30
commit
b2f0d92c45
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue