8000 test(inkless:control-plane): wait for topic metadata before describing it [KC-855] by giuseppelillo · Pull Request #895 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

test(inkless:control-plane): wait for topic metadata before describing it [KC-855] - #895

Merged
gqmelo merged 1 commit into
mainfrom
claude/kc-855-bug-fix-6d3032
Nov 24, 2026
Merged

gqmelo merged 1 commit into
mainfrom
claude/kc-855-bug-fix-6d3032

Conversation

@giuseppelillo
@giuseppelillo giuseppelillo commented Nov 23, 2026 •
Copy link
Copy Markdown
Contributor

Why

Two tests in InklessControlPlaneOutageClusterTest failed in CI with UnknownTopicOrPartitionException from the topicId helper. createTopics returns once the controller has the topic, but the broker that answers describeTopics can still lack the metadata.

Changes

The topicId helper calls TopicMetadataProbe.awaitVisible before describeTopics, as other cluster tests do after they create a topic. Every caller of the helper is covered.

Testing

./gradlew :core:test --tests kafka.server.InklessControlPlaneOutageClusterTest passes all 7 tests.

🤖 Generated with Claude Code

…g it [KC-855]

The `topicId` helper in `InklessControlPlaneOutageClusterTest` called `describeTopics` right after `createTopics`. The controller has the topic at that point, but the broker that answers can still lack the metadata, so the call threw `UnknownTopicOrPartitionException` in CI. The helper now calls `TopicMetadataProbe.awaitVisible` first, as other cluster tests do.

Assisted-by: Claude Sonnet 5.5
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.

🟢 Approval recommended

No active review issues were identified for the metadata-visibility wait added to the shared topic ID helper.

No open issues 🎉

What changed in this PR

This PR addresses a metadata propagation race in Inkless control-plane outage tests that can cause UnknownTopicOrPartitionException after topic creation.

Changes:

  • Add TopicMetadataProbe.awaitVisible before describeTopics in the shared topicId helper, covering every caller.
File Description
core/​src/​test/​java/​kafka/​server/​InklessControlPlaneOutageClusterTest.java Wait for topic metadata visibility before retrieving the topic ID.

Review effort: Balanced

@gqmelo
gqmelo merged commit b76e2f8 into main Nov 24, 2026
9 checks passed
@gqmelo
gqmelo deleted the claude/kc-855-bug-fix-6d3032 branch November 24, 2026 09:56
gqmelo added a commit that referenced this pull request Nov 25, 2026
Bring in #894, #895, and #896, which landed on main after the sync
branched, so the 4.4 adaptations cover them.

Assisted-by: Claude Opus 5.5
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

0