315157973 opened a new pull request, #19992: URL: https://github.com/apache/pulsar/pull/19992
### Motivation When we clean up the data now, we first delete the index (metadata in Zookeeper), and then delete the Bookie data. If the data deletion of Bookie fails, but the index is not there because it was deleted first, the data of Bookie can never be deleted. Therefore, we need to delete the data first, and then delete the index. In this way, the entire delete operation is idempotent. Data that is not deleted in the current cycle can be retried and deleted in the next cycle ### Modifications 1. Let the method of synchronous execution become asynchronous execution 2. The order of deletion changes to delete the data first and then delete the index ### Verifying this change ### Documentation - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
