Repository navigation
Conversation
|
@rdhabalia:Thanks for your contribution. For this PR, do we need to update docs? |
|
@rdhabalia is this a bug fix and we do not need to update docs? |
|
this PR doesn't need doc update. |
|
The pr had no activity for 30 days, mark with Stale label. |
|
The pr had no activity for 30 days, mark with Stale label. |
|
@rdhabalia LGTM but the PR needs rebasing |
| }); | ||
| admin.namespaces().deleteNamespace(namespace); | ||
| try { | ||
| admin.namespaces().getPolicies(namespace); |
There was a problem hiding this comment.
There must be an exception, so a fail() should be added here
|
Thanks @rdhabalia, and sorry this sat so long. Master's namespace delete was rewritten (#17230, #26869) and still treats partitioned-topic metadata as a topic on purpose: the topic still exists and lookups re-create its partitions. The supported paths are |
Motivation
Right now, broker gives below error while deleting empty namespace without any topic under the namespace but namespace was having partitioned-topic metadata.
Modification
It's because broker was incorrectly assuming topic existence by checking partitioned-topic metadata. delete-admin API cleans up partitioned-metadata after successfully deleting namespace and it it should not incorrectly depend on partitioned-metadata check. this issue is already fixed with forcefully delete-ns admin-api and delete-admin also needs the same fix.
Result
User can delete namespace after successfully deleting all topics under the namespace.