<@U078Y59KC3B> How do I check which broker owns a ...
# ask-ai
t
@RunLLM How do I check which broker owns a specific partition?
r
To check which broker owns a specific partition in Pulsar, use the
pulsar-admin topics partitioned-lookup
command with the full topic name. This will display each partition and the broker URL that currently owns it. For example:
Copy code
pulsar-admin topics partitioned-lookup persistent://tenant/namespace/topic
The output will list each partition and its owning broker, e.g.,
persistent://tenant/namespace/topic-partition-0   pulsar://broker-1:6650
(Pulsar Admin API Topics). Would you like more detail? Sources: - Pulsar Admin API Topics - Pulsar Broker Load Balancing Quick Start 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
s
@RunLLM Failed to enable deduplication: org.apache.bookkeeper.mledger.ManagedLedgerException$LedgerNotExistException: No such ledger exists on Bookies"
r
This error means Pulsar tried to enable deduplication, but the BookKeeper ledger used for deduplication metadata is missing or deleted, so Pulsar cannot find it (Pulsar PR 22469). This is a non-recoverable error: the deduplication ledger metadata exists in ZooKeeper, but the actual ledger data is gone from BookKeeper. To resolve, you must reset deduplication state for the topic, which may involve disabling and re-enabling deduplication, or manually cleaning up the deduplication cursor/metadata (Pulsar PR 22469). Would you like more detail? Sources: - Pulsar PR 22469 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
s
@RunLLM "java.util.concurrent.CompletionException: org.apache.bookkeeper.mledger.ManagedLedgerException$LedgerNotExistException: No such ledger exists on Bookies
r
This error indicates that Pulsar or BookKeeper is trying to access a ledger whose metadata exists (e.g., in ZooKeeper), but the actual ledger data is missing from all BookKeeper nodes ("bookies") (Pulsar Issue 23493). This can happen due to disk failures, manual deletions, or inconsistencies between metadata and data. To diagnose, use tools like PCK to check for missing ledgers and metadata inconsistencies (PCK Overview). Would you like more detail? Sources: - Pulsar Issue 23493 - PCK Overview 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.