poorbarcode opened a new pull request, #25073:
URL: https://github.com/apache/pulsar/pull/25073
### Motivation
**Background**
The topic deteling steps
- delete and close Transaction buffer.
- delete cursors and ledgers
**Issue**
- delete and close transaction buffer succeed.
- The internal producer of transaction buffer was closed.
- delete curosr failed.
- ...
- Retry to delete
- try to delete and close transaction buffer
- failed because the internal producer of transaction buffer was closed
```
2025-11-19T14:49:06,328+0000 [broker-topic-workers-OrderedExecutor-2-0]
ERROR org.apache.pulsar.broker.service.persistent.PersistentTopic -
[persistent://messaging/command/xxx-partition-0] Error deleting topic
2025-11-19T14:49:06,328+0000 [broker-topic-workers-OrderedExecutor-0-0]
ERROR org.apache.pulsar.broker.service.persistent.PersistentTopic -
[persistent://messaging/command/xxx-partition-1] Error deleting topic
2025-11-19T14:49:07,014+0000 [broker-topic-workers-OrderedExecutor-0-0]
ERROR org.apache.pulsar.broker.service.persistent.PersistentTopic -
[persistent://messaging/command/xxx-partition-1] Error deleting topic
2025-11-19T14:49:07,014+0000 [broker-topic-workers-OrderedExecutor-0-0]
ERROR org.apache.pulsar.broker.service.persistent.PersistentTopic -
[persistent://messaging/command/xxx-partition-1] Error deleting topic
```
<img width="1889" height="809" alt="Screenshot 2025-12-15 at 11 42 00"
src="https://github.com/user-attachments/assets/df9216eb-d897-4609-ab75-21a0cf66d234"
/>
### Modifications
- Make Transaction buffer clearing and deleting to be retryable
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `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 -->
### Matching PR in forked repository
PR in forked repository: x
--
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]