You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "bbejeck (via GitHub)" <gi...@apache.org> on 2026/08/12 23:34:26 UTC
Re: [PR] KAFKA-20870: Add test for the owned-task report for a single-role assignment change [kafka]
bbejeck commented on code in PR #23002:
URL: https://github.com/apache/kafka/pull/23002#discussion_r3771122278
##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManagerTest.java:
##########
@@ -1831,6 +1832,93 @@ public void testBuildingHeartbeatAssignmentSentWhenChanged(final MemberState mem
assertEquals(List.of(), nonJoiningRequestDataWithChanges.warmupTasks());
}
+ private enum OwnedTaskRole { ACTIVE, STANDBY, WARMUP }
+
+ @ParameterizedTest
+ @EnumSource(OwnedTaskRole.class)
+ public void testBuildingHeartbeatAllOwnedTaskListsSentWhenOnlyOneRoleChanges(final OwnedTaskRole changingRole) {
+ // The broker reads the owned-task lists as a report of what the member holds only when all three of them are
+ // non-null; if any is null it cannot tell that a task was released, and the member effectively fails tp
Review Comment:
```suggestion
// non-null; if any is null it cannot tell that a task was released, and the member effectively fails to
```
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org