congbobo184 opened a new pull request #14781:
URL: https://github.com/apache/pulsar/pull/14781
### Motivation
When Transaction PendingAck recover fail throw CursorAlreadyClosedException,
we should stop the recover op. the cursor was been closed, the pendingAck was
been closed, so we should stop the recover op, in order to release thread
resources
```
02:03:00.072 [pulsar-transaction-executor-4-1] ERROR
org.apache.pulsar.broker.transaction.pendingack.impl.MLPendingAckStore -
MLPendingAckStore of topic
[public/default/persistent/source-topic-partition-13-test__transaction_pending_ack]
stat reply fail!
org.apache.bookkeeper.mledger.ManagedLedgerException$CursorAlreadyClosedException:
Cursor was already closed
```
### Modifications
When recover fail by CursorAlreadyClosedException, comeplete recover
### Verifying this change
add test for it
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs
/ not documented)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
--
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]