codelipenghui opened a new issue #9550: URL: https://github.com/apache/pulsar/issues/9550
**Is your enhancement request related to a problem? Please describe.** The Ledger deletion depends on the moving forward the cursors and if the cursor moving forward need to write the ack state to the cursor Ledger, if the bookie switch to the read-only mode, the cursor can't move forward so the ledgers of the topic can not be deleted. So is it possible to skip the persistence of the ack state while encountering the bookie not able to write data anymore? and continues to move forward the cursor, this will allow deleting Ledgers even if the cursor moves forward. But this will introduce another problem, while the topic has been reloaded, the cursor recovers from an old snapshot which the mark-delete position point to a deleted Ledger. We can use `autoSkipNonRecoverableData=true` to allow consumers to continue to consume messages. And I think this will not break the `at-least-once` message delivery guarantee. **Describe the solution you'd like** Add a config to allow skip the ack state persistence to able to delete the Ledgers while the bookies are in RO state. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
