Delete associated ledgers before deleting cluster metadata - #8244
Conversation
|
/pulsarbot run-failure-checks |
sijie
left a comment
There was a problem hiding this comment.
@BewareMyPower Can you delete the managed ledger and ledgers using an iterator rather than collecting all the ledgers into a list? If a cluster has a lot of ledgers, it will fill up the memory.
|
@sijie OK |
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
Now all checks have passed, PTAL again, @sijie @eolivelli |
sijie
left a comment
There was a problem hiding this comment.
@BewareMyPower Can you please add unit tests and integration tests for this tool?
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
2 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
I've added an integration test, PTAL, @sijie |
### Motivation #8169 introduced a command tool to delete a cluster's metadata from ZK. This PR intends to delete the cluster's ledgers from BK. ### Modifications - Retrieve ledger ids from related ZK nodes - Add an optional argument to specify BK metadata service URI, then delete these ledgers if it's specified (cherry picked from commit 9922249)
### Motivation apache#8169 introduced a command tool to delete a cluster's metadata from ZK. This PR intends to delete the cluster's ledgers from BK. ### Modifications - Retrieve ledger ids from related ZK nodes - Add an optional argument to specify BK metadata service URI, then delete these ledgers if it's specified
### Motivation apache#8169 introduced a command tool to delete a cluster's metadata from ZK. This PR intends to delete the cluster's ledgers from BK. ### Modifications - Retrieve ledger ids from related ZK nodes - Add an optional argument to specify BK metadata service URI, then delete these ledgers if it's specified
Motivation
#8169 introduced a command tool to delete a cluster's metadata from ZK. This PR intends to delete the cluster's ledgers from BK.
Modifications
Verifying this change