-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete associated ledgers before deleting cluster metadata #8244
Delete associated ledgers before deleting cluster metadata #8244
Conversation
/pulsarbot run-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Show resolved
Hide resolved
/pulsarbot run-failure-checks |
Now all checks have passed, PTAL again, @sijie @eolivelli |
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarClusterMetadataTeardown.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BewareMyPower Great job!
### 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