-
Notifications
You must be signed in to change notification settings - Fork 14.5k
MINOR: Invoke share group rebalance sensor. #20006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. This is clearly correcting a mistake. Good catch.
@@ -2575,6 +2576,10 @@ private CoordinatorResult<Map.Entry<ShareGroupHeartbeatResponseData, Optional<In | |||
records | |||
) || initializedAssignmentPending(group); | |||
|
|||
if (bumpGroupEpoch) { | |||
metrics.record(SHARE_GROUP_REBALANCES_SENSOR_NAME); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this metric is not recorded on line 2618, just after the log.info("[GroupId {}] Bumped group epoch...
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be more appropriate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I'm just aiming to get the different group types to do this stuff in the same way.
@AndrewJSchofield Thanks for the review, incorporated comments. |
appropriate group id bump position.
(s/rebalance-rate/share-group-rebalance-rate,
s/rebalance-count/share-group-rebalance-count/)
GroupMetadataManagerTest
andGroupCoordinatorMetricsTest
Reviewers: Andrew Schofield [email protected]