Skip to content

MINOR: Fix race in StreamsGroupHeartbeatRequestTest testDynamicGroupConfig#22277

Merged
squah-confluent merged 1 commit into
apache:trunkfrom
confluentinc:squah-fix-streamsgroupheartbeatrequesttest-flake
May 14, 2026
Merged

MINOR: Fix race in StreamsGroupHeartbeatRequestTest testDynamicGroupConfig#22277
squah-confluent merged 1 commit into
apache:trunkfrom
confluentinc:squah-fix-streamsgroupheartbeatrequesttest-flake

Conversation

@squah-confluent
Copy link
Copy Markdown
Contributor

@squah-confluent squah-confluent commented May 13, 2026

In testDynamicGroupConfig, we dynamically configure a group's
streams.num.standby.replicas, followed by
streams.task.offset.interval.ms. We then wait for the next assignment
and check that it has the expected number of standby replicas and
expected task offset interval. However, this only guarantees that the
new streams.num.standby.replicas config has propagated to the group
coordinator and not necessarily the new task offset interval.

Add a loop to heartbeat until we observe the expected task offset
interval or a timeout elapses.

Reviewers: Lucas Brutschy lbrutschy@confluent.io, Matthias J. Sax
matthias@confluent.io

…onfig

In testDynamicGroupConfig, we dynamically configure a group's
streams.num.standby.replicas, followed by
streams.task.offset.interval.ms. We then wait for the next assignment
and check that it has the expected number of standby replicas and
expected task offset interval. However, this only guarantees that the
new streams.num.standby.replicas config has propagated to the group
coordinator and not necessarily the new task offset interval.

Add a loop to heartbeat until we observe the expected task offset
interval or a timeout elapses.
@github-actions github-actions Bot added core Kafka Broker tests Test fixes (including flaky tests) triage PRs from the community small Small PRs labels May 13, 2026
Copy link
Copy Markdown
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@squah-confluent squah-confluent merged commit 6de42dc into apache:trunk May 14, 2026
24 checks passed
@squah-confluent squah-confluent deleted the squah-fix-streamsgroupheartbeatrequesttest-flake branch May 14, 2026 04:19
@github-actions github-actions Bot removed the triage PRs from the community label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker small Small PRs tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants