<@U078Y59KC3B> for partitioned topics, if I want t...
# ask-ai
s
@RunLLM for partitioned topics, if I want to clear the backlog, do I need to run the
pulsar-admin topics clear-backlog
command for each partitioned topic?
r
It seems likely that for partitioned topics, you do not need to run
pulsar-admin topics clear-backlog
for each partition individually. Instead, you can use the namespace-level command to clear the backlog for all topics (including all partitions of partitioned topics) within a namespace:
Copy code
pulsar-admin namespaces clear-backlog <tenant>/<namespace>
This will clear the backlog for all topics and their partitions in the specified namespace. If you want to clear the backlog for a specific subscription or bundle, you can use the
--sub
or
--bundle
flags as needed. For more details, see Pulsar Admin API - Clear Backlog and StreamNative CLI - Clear Namespace Backlog. Would you like more detail on clearing backlog for individual partitions or subscriptions? Sources: - StreamNative CLI - Clear Namespace Backlog 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.