[
https://issues.apache.org/jira/browse/KAFKA-21514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sanghyeok An updated KAFKA-21514:
---------------------------------
Component/s: group-coordinator
streams
> Streams group rebalances triggered by normal member departures are not
> recorded in broker metrics
> -------------------------------------------------------------------------------------------------
>
> Key: KAFKA-21514
> URL: https://issues.apache.org/jira/browse/KAFKA-21514
> Project: Kafka
> Issue Type: Bug
> Components: group-coordinator, streams
> Reporter: sanghyeok An
> Assignee: sanghyeok An
> Priority: Minor
>
> When a member leaves a Streams group normally and its tasks are redistributed
> to the remaining members, the rebalance is not reflected in the broker’s
> {{streams-group-rebalance-count}} and {{streams-group-rebalance-rate}}
> metrics.
> *Scenario*
> # Two dynamic members, A and B, each process one task in a Streams group
> that is in the {{STABLE}} state.
> # A leaves the group normally. The coordinator removes A, increments the
> group epoch, and transitions the group to {{{}ASSIGNING{}}}.
> # When B sends its next heartbeat, the coordinator computes a new assignment
> and assigns A’s former task to B.
> # B acknowledges the new assignment and takes responsibility for both tasks.
> The group returns to {{{}STABLE{}}}.
> # Although task redistribution completes, the rebalance event is not
> recorded by the metrics sensor. Subsequent heartbeats without further changes
> do not record the missing event either.
> This scenario occurs during a normal membership reduction from two members to
> one, without changes to the topology or assignment configuration. Static
> membership, request errors, and coordinator restarts are not required.
> Task assignment and the group’s return to normal operation succeed, but
> departure-triggered rebalances are omitted from the metrics, causing the
> reported rebalance count and rate to underrepresent actual rebalance activity.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)