KAFKA-14337: correctly remove topicsWithCollisionChars after topic deletion#12790
KAFKA-14337: correctly remove topicsWithCollisionChars after topic deletion#12790hachikuji merged 1 commit intoapache:trunkfrom
Conversation
There was a problem hiding this comment.
The key for topicsWithCollisionChars should be normalized name, not original name.
|
@dengziming @cmccabe , please take a look. Thanks. |
dengziming
left a comment
There was a problem hiding this comment.
Nice catch @showuon , can we also add a test in ReplicationControlManagerTest?
| TestUtils.verifyTopicDeletion(zkClientOrNull, topicWithCollidingChar, 1, brokers) | ||
|
|
||
| val createTopic: Executable = () => createAndWaitTopic(createOpts) | ||
| assertDoesNotThrow(createTopic) |
There was a problem hiding this comment.
I'm investigating why there will be compile error when directly using assertDoesNotThrow(() => createAndWaitTopic(createOpts)).
|
Great find! Agree with @dengziming that we should have a test in |
hachikuji
left a comment
There was a problem hiding this comment.
Since the fix is straightforward, I'm inclined to check in as is. I'm a tad anxious to get this patch since we are trying to bring kraft to production. I've opened a separate PR with a unit test for ReplicationControlManager: #12796.
…letion (#12790) In #11910 , we added a feature to prevent topics with conflicting metrics names from being created. We added a map to store the normalized topic name to the topic names, but we didn't remove it correctly while deleting topics. This PR fixes this bug and add a test. Reviewers: Igor Soarez <i@soarez.me>, dengziming <dengziming1993@gmail.com>, Jason Gustafson <jason@confluent.io>
This patch adds a unit test for topic recreation with colliding characters (such as `.`). This was broken up until #12790. Reviewers: José Armando García Sancio <jsancio@users.noreply.github.com>
…letion (apache#12790) In apache#11910 , we added a feature to prevent topics with conflicting metrics names from being created. We added a map to store the normalized topic name to the topic names, but we didn't remove it correctly while deleting topics. This PR fixes this bug and add a test. Reviewers: Igor Soarez <i@soarez.me>, dengziming <dengziming1993@gmail.com>, Jason Gustafson <jason@confluent.io>
…e#12796) This patch adds a unit test for topic recreation with colliding characters (such as `.`). This was broken up until apache#12790. Reviewers: José Armando García Sancio <jsancio@users.noreply.github.com>
…letion (apache#12790) In apache#11910 , we added a feature to prevent topics with conflicting metrics names from being created. We added a map to store the normalized topic name to the topic names, but we didn't remove it correctly while deleting topics. This PR fixes this bug and add a test. Reviewers: Igor Soarez <i@soarez.me>, dengziming <dengziming1993@gmail.com>, Jason Gustafson <jason@confluent.io>
…letion (apache#12790) (#90) In apache#11910 , we added a feature to prevent topics with conflicting metrics names from being created. We added a map to store the normalized topic name to the topic names, but we didn't remove it correctly while deleting topics. This PR fixes this bug and add a test. Reviewers: Igor Soarez <i@soarez.me>, dengziming <dengziming1993@gmail.com>, Jason Gustafson <jason@confluent.io> Co-authored-by: Luke Chen <showuon@gmail.com>
…e#12796) This patch adds a unit test for topic recreation with colliding characters (such as `.`). This was broken up until apache#12790. Reviewers: José Armando García Sancio <jsancio@users.noreply.github.com>
…e#12796) (#91) This patch adds a unit test for topic recreation with colliding characters (such as `.`). This was broken up until apache#12790. Reviewers: José Armando García Sancio <jsancio@users.noreply.github.com> Co-authored-by: Jason Gustafson <jason@confluent.io>
In #11910 , we added a feature to prevent topics with conflicting metrics names from being created. We added a map to store the normalized topic name to the topic names, but we didn't remove it correctly while deleting topics. This PR fixes this bug and add a test.
Committer Checklist (excluded from commit message)