control-plane: avoid duplicate CreateTopics requests for existing topics - #4654
control-plane: avoid duplicate CreateTopics requests for existing topics#4654jijo-OO7 wants to merge 2 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jijo-OO7 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4654 +/- ##
============================================
+ Coverage 28.83% 36.19% +7.35%
- Complexity 0 901 +901
============================================
Files 294 403 +109
Lines 16172 20011 +3839
Branches 0 342 +342
============================================
+ Hits 4664 7243 +2579
- Misses 11053 12128 +1075
- Partials 455 640 +185
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
This change makes topic creation idempotent by checking topic metadata before issuing CreateTopic. |
|
/retest-required |
|
@Cali0707 whenever you have a moment, could you take a look at this PR? |
Fixes #4406
Proposed Changes
CreateTopicIfDoesntExistidempotent by checking Kafka metadata before creating topics.CreateTopicsrequests and error responses during steady-state reconciliation.DescribeTopicsfirst behavior.CreateTopicsrequests by checking topic existence via Kafka metadata before creating.