Skip to content

KAFKA-13591; Fix flaky test ControllerIntegrationTest.testTopicIdCreatedOnUpgrade#11666

Merged
dajac merged 2 commits intoapache:trunkfrom
dajac:KAFKA-13591
Jan 21, 2022
Merged

KAFKA-13591; Fix flaky test ControllerIntegrationTest.testTopicIdCreatedOnUpgrade#11666
dajac merged 2 commits intoapache:trunkfrom
dajac:KAFKA-13591

Conversation

@dajac
Copy link
Member

@dajac dajac commented Jan 11, 2022

The issue is that when zkClient.getTopicIdsForTopics(Set(tp.topic)).get(tp.topic) is called after the new controller is brought up, there is not guarantee that the controller has already written the topic id to the topic znode.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Copy link
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

Thanks. The patch makes sense. Left a minor suggestion.

Copy link
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

LGTM

@dajac dajac merged commit ebe0ede into apache:trunk Jan 21, 2022
@dajac dajac deleted the KAFKA-13591 branch January 21, 2022 16:38
dajac added a commit that referenced this pull request Jan 21, 2022
…atedOnUpgrade` (#11666)

The issue is that when `zkClient.getTopicIdsForTopics(Set(tp.topic)).get(tp.topic)` is called after the new controller is brought up, there is not guarantee that the controller has already written the topic id to the topic znode.

Reviewers: Jason Gustafson <jason@confluent.io>
jeffkbkim pushed a commit to confluentinc/kafka that referenced this pull request May 12, 2022
…atedOnUpgrade` (apache#11666)

The issue is that when `zkClient.getTopicIdsForTopics(Set(tp.topic)).get(tp.topic)` is called after the new controller is brought up, there is not guarantee that the controller has already written the topic id to the topic znode.

Reviewers: Jason Gustafson <jason@confluent.io>
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.

2 participants