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
3. Delete missing ledgers from Pulsar managedLedger list (Run it in the toolset container).
3.1 Replace the generated python Protobuf file MLDataFormats_pb2.py with the given one. (This python file is generated from Pulsar 2.9.3.23, which matched the customer's Pulsar version. The new python file list is below)
3.2 From step 2's output, we can the missing ledgerId with the topic name. For example, the missing ledgerId is [2,3] and the related topic name is persistent://public/default/test_v1-partition-0
Use the following command to get the ledger list of the topic and confirm the list containers missing ledgerIds
Please test the above command with one topic first to confirm it works as expected.
Please pay attention to the parameter --managedLedgerPath. This parameter represents the ZNode path in Zookeeper, we can find it in Zookeeper's Znode. If the topic name is persistent://public/default/test_v1-partition-0 and the parameter is public/default/persistent/test_v1-partition-0
Ricks:
This delete command directly updates ZNode. However, the broker maybe also update the ZNode at the same time. It has the risk of this tool updating the ZNode with the old content and may lead to data loss. It may happens with low probability.
The text was updated successfully, but these errors were encountered:
1. Delete unrecoverable ledgers in under replicated state in the BookKeeper cluster
1.1 list all unrecoverable ledgers without deleting them
Please confirm the results are expected.
1.2 list and delete all unrecoverable ledgers
2. Find out ledgers that existed on Pulsar managedLedger list, but not existed in the BookKeeper cluster.
3. Delete missing ledgers from Pulsar managedLedger list (Run it in the toolset container).
3.1 Replace the generated python Protobuf file
MLDataFormats_pb2.py
with the given one. (This python file is generated from Pulsar 2.9.3.23, which matched the customer's Pulsar version. The new python file list is below)3.2 From step 2's output, we can the missing ledgerId with the topic name. For example, the missing ledgerId is [2,3] and the related topic name is
persistent://public/default/test_v1-partition-0
Use the following command to get the ledger list of the topic and confirm the list containers missing ledgerIds
After confirmingd, we can use the following command to delete ledgerIds [2, 3] from the topic's ledger list.
Use the following command to confirm the ledgerIds has been deletd.
Notice:
--managedLedgerPath
. This parameter represents the ZNode path in Zookeeper, we can find it in Zookeeper's Znode. If the topic name ispersistent://public/default/test_v1-partition-0
and the parameter ispublic/default/persistent/test_v1-partition-0
Ricks:
This delete command directly updates ZNode. However, the broker maybe also update the ZNode at the same time. It has the risk of this tool updating the ZNode with the old content and may lead to data loss. It may happens with low probability.
The text was updated successfully, but these errors were encountered: