lucasbru commented on code in PR #24216:
URL: https://github.com/apache/kafka/pull/24216#discussion_r4586259264
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroup.java:
##########
@@ -1578,6 +1579,11 @@ public
List<StreamsGroupHeartbeatResponseData.EndpointToPartitions> buildEndpoin
"This is a bug, please file a JIRA ticket.", groupId);
return endpointToPartitionsList;
}
+ // While the topology is not ready, for example because source or
internal topics are missing, the target assignment
+ // is empty, so there are no partitions to report.
+ if
(configuredTopology().filter(ConfiguredTopology::isReady).isEmpty()) {
+ return endpointToPartitionsList;
Review Comment:
The first heartbeat of a new group runs on a group object that is thrown
away, so `wasReady` is empty on the second heartbeat and a deletion in between
does not bump the epoch. The member still owns its tasks at that point, so the
routes it holds are still valid. They are withdrawn when the assignment
changes, because revoking tasks bumps the epoch through the existing path
(covered by the source-topic-deleted test). The reload case is the same
soft-state limitation as the epoch itself, discussed in the failover thread on
`GroupMetadataManager.java:2250`, so I'm leaving both out of this PR.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]