You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Broker internal error while deleting namespace #18802
022-12-07T15:27:32,863+0100 [pulsar-io-95-5] WARN org.apache.pulsar.broker.service.ServerCnx - Failed to get Partitioned Metadata [/127.0.0.1:57885] persistent://test-tenant/test-ns2/__change_events: Namespace is deleted
org.apache.pulsar.broker.web.RestException: Namespace is deleted
What did you expect to see?
The namespace being deleted correctly.
What did you see instead?
I get an internal error from the broker.
The issue is that the __change_events topic doesn't exists at the moment of the namespace deletion.
The namespace deletion procedure is:
set namespace deleted=true (disallow new topics being created)
delete user topics
delete system topics
Right after deleting the first topic, the notification of the topic deleted is written to the __change_events. If the topic doesn't exists it's created. But at this point the topic creation is not allowed.
I think in case of namespace deletion all the notifications shouldn't be written at all since the topic is being deleted.
Activity