Skip to content

fix(inkless): retry describeTopics in InklessManagedReplicasClusterTest for metadata propagation - #625

Merged
viktorsomogyi merged 1 commit into
mainfrom
jeqo/fix-flaky-managed-replicas-test
Jun 2, 2026
Merged

fix(inkless): retry describeTopics in InklessManagedReplicasClusterTest for metadata propagation#625
viktorsomogyi merged 1 commit into
mainfrom
jeqo/fix-flaky-managed-replicas-test

Conversation

@jeqo

@jeqo jeqo commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

In multi-broker clusters, metadata propagation from the controller to follower brokers is async. describeTopics may hit a broker that hasn't received the update yet, causing UnknownTopicOrPartitionException.

…st for metadata propagation

In multi-broker clusters, metadata propagation from the controller to
follower brokers is async. describeTopics may hit a broker that hasn't
received the update yet, causing UnknownTopicOrPartitionException.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeqo
jeqo force-pushed the jeqo/fix-flaky-managed-replicas-test branch from d74994f to eeef9bd Compare June 1, 2026 15:40
@jeqo
jeqo requested a review from Copilot June 1, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces test flakiness in InklessManagedReplicasClusterTest by retrying Admin#describeTopics to tolerate asynchronous metadata propagation in multi-broker clusters (where a follower broker may temporarily return UnknownTopicOrPartitionException right after topic creation).

Changes:

  • Added a small retry helper to wait until describeTopics succeeds after topic creation.
  • Updated two tests to use the new helper instead of a single describeTopics call.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeqo
jeqo marked this pull request as ready for review June 1, 2026 16:06
@viktorsomogyi
viktorsomogyi merged commit d1463bb into main Jun 2, 2026
10 checks passed
@viktorsomogyi
viktorsomogyi deleted the jeqo/fix-flaky-managed-replicas-test branch June 2, 2026 07:46
giuseppelillo pushed a commit that referenced this pull request Jun 4, 2026
…st for metadata propagation (#625)

In multi-broker clusters, metadata propagation from the controller to
follower brokers is async. describeTopics may hit a broker that hasn't
received the update yet, causing UnknownTopicOrPartitionException.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
gqmelo pushed a commit that referenced this pull request Jun 4, 2026
…st for metadata propagation (#625)

In multi-broker clusters, metadata propagation from the controller to
follower brokers is async. describeTopics may hit a broker that hasn't
received the update yet, causing UnknownTopicOrPartitionException.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants