Stanislaw Makarawec
07/11/2025, 10:59 AMRunLLM
07/11/2025, 10:59 AMStanislaw Makarawec
07/11/2025, 11:05 AMRunLLM
07/11/2025, 11:05 AMStanislaw Makarawec
07/11/2025, 11:08 AMRunLLM
07/11/2025, 11:08 AMforce option with the admin API (e.g., pulsar-admin topics delete --force). If the topic is fenced or stuck, you may need to unload the topic first using pulsar-admin topics unload, which releases ownership and resets its state, then retry deletion. This approach can clear transient errors without a full broker restart, as described in Pulsar admin API docs and GitHub Issue #15451.
If the topic remains undeletable, check for lingering subscriptions or replication, and remove them before retrying. Would you like more detail or example commands?
Sources:
- Pulsar admin API docs 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.Stanislaw Makarawec
07/11/2025, 11:17 AM13:12:53 DEBUG: Try request 1/5 to <http://k8s-pulsar-dev-broker.pulsar-dev:8080/admin/v2/namespaces/server_jenkins1/driver>
13:12:53 DEBUG: [1/5] Error: status 500, body: {"reason":"\n --- An unexpected error occurred in the server ---\n\nMessage: Topic is already fenced\n\nStacktrace:\n\norg.apache.pulsar.broker.service.BrokerServiceException$TopicFencedException: Topic is already fenced
./bin/pulsar-admin topics list server_jenkins1/driver
Namespace is deleted
Reason: Namespace is deleted
What should i do for delete namespace?RunLLM
07/11/2025, 11:17 AMStanislaw Makarawec
07/11/2025, 12:08 PMRunLLM
07/11/2025, 12:08 PM/managed-ledgers/<tenant>/<namespace>).
2. Delete Orphaned Metadata: If you find entries for topics or ledgers under the deleted namespace, manually remove them using ZooKeeper CLI (zkCli.sh) or etcdctl, depending on your Pulsar metadata backend. Be careful—removing the wrong entries can cause data loss or instability.
3. Retry Namespace Deletion: After cleaning up, retry the namespace deletion with the admin tool.
Warning: Direct metadata edits are risky and not officially recommended for production unless you have backups and understand the implications. Always back up your metadata before making changes.
Would you like step-by-step commands for ZooKeeper or etcd?
Sources:
- https://github.com/apache/pulsar/pull/13337
- https://github.com/apache/pulsar/pull/19374 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.