Repository navigation
test(inkless:control-plane): wait for topic metadata before describing it [KC-855] - #895
Merged
Merged
Conversation
…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
Contributor
There was a problem hiding this comment.
🟢 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.awaitVisiblebeforedescribeTopicsin the sharedtopicIdhelper, 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
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Two tests in
InklessControlPlaneOutageClusterTestfailed in CI withUnknownTopicOrPartitionExceptionfrom thetopicIdhelper.createTopicsreturns once the controller has the topic, but the broker that answersdescribeTopicscan still lack the metadata.Changes
The
topicIdhelper callsTopicMetadataProbe.awaitVisiblebeforedescribeTopics, as other cluster tests do after they create a topic. Every caller of the helper is covered.Testing
./gradlew :core:test --tests kafka.server.InklessControlPlaneOutageClusterTestpasses all 7 tests.🤖 Generated with Claude Code