jeffkbkim opened a new pull request, #14988:
URL: https://github.com/apache/kafka/pull/14988

   Currently, we increment generic group metrics whenever we create a new Group 
object when we load a partition. This is incorrect as the partition may contain 
several records for the same group if in the active segment or if the segment 
has not yet been compacted. 
   
   The same applies to removing groups; we can possibly have multiple group 
tombstone records. Instead, only increment the metric if we created a new group 
and only decrement the metric if the group exists.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to