[fix][broker] Support deleting partitioned topics with the keyword -partition-#19230
[fix][broker] Support deleting partitioned topics with the keyword -partition-#19230mattisonchao merged 1 commit intoapache:masterfrom mattisonchao:support_delete_topic_with_keyword
-partition-#19230Conversation
Codecov Report
@@ Coverage Diff @@
## master #19230 +/- ##
============================================
+ Coverage 45.64% 47.99% +2.35%
+ Complexity 11043 10896 -147
============================================
Files 773 713 -60
Lines 74463 69724 -4739
Branches 8018 7497 -521
============================================
- Hits 33986 33464 -522
+ Misses 36687 32555 -4132
+ Partials 3790 3705 -85
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Please take a look at the test. We not only need to delete the topic but also topic metadata.
Yes, that is the root cause, but we should consider the compatibility for some users using current behaviour.
We didn't limit all the cases. This topic name can still create partitioned topic metadata.
If you have any good way to solve the problem I mentioned, I would be pleased to revert the current PR. |
…19234) ### Motivation This PR is following up #19230 As @yuruguo mentioned #19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. ### Modifications - tighten the validation scope
…19234) ### Motivation This PR is following up #19230 As @yuruguo mentioned #19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. ### Modifications - tighten the validation scope (cherry picked from commit 246c270)
…19234) ### Motivation This PR is following up #19230 As @yuruguo mentioned #19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. ### Modifications - tighten the validation scope (cherry picked from commit 246c270)
…19234) This PR is following up #19230 As @yuruguo mentioned #19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. - tighten the validation scope (cherry picked from commit 246c270)
…partition-` (apache#19230) (cherry picked from commit fc4bca6) (cherry picked from commit 0ade728)
…ope (apache#19234) This PR is following up apache#19230 As @yuruguo mentioned apache#19230 (comment), we can tighten the validation scope. I've checked the logic and found we have no way to create the partition topic with the `-partition-{index}` template. So we can righten the validation scope. I will keep working on the partition topic section and try to clarify the concept and logic. Plus, ensuring compatibility. - tighten the validation scope (cherry picked from commit 246c270) (cherry picked from commit 2e3e9de)
Motivation
We allow users to use the client to create the partitioned topic when they enable partitioned type auto-creation. But we didn't support deleting it.
Modifications
-partition-Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Documentation
docdoc-requireddoc-not-neededdoc-complete