poorbarcode opened a new pull request, #23153:
URL: https://github.com/apache/pulsar/pull/23153
### Motivation
The Pending Ack handler can not recover after encountering a
`MetadataStoreException` even the metadata store has been re-established.
```
2024-07-24T02:56:11,347+0000 [pulsar-transaction-executor-5-1] ERROR
org.apache.pulsar.broker.transaction.pendingack.impl.PendingAckHandleImpl -
[persistent://{tenant}/{ns}/{topic}] [multiTopicsReader-5c010a1ec8]
PendingAckHandleImpl init fail!
org.apache.pulsar.metadata.api.MetadataStoreException:
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode =
ConnectionLoss for
/managed-ledgers/{tenant}/{namespace}/persistent/{topic}-multiTopicsReader-5c010a1ec8__transaction_pending_ack
at
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
~[io.netty-netty-common-4.1.108.Final.jar:4.1.108.Final]
at org.apache.zookeeper.KeeperException.create(KeeperException.java:101)
at
org.apache.pulsar.broker.transaction.pendingack.impl.PendingAckHandleImpl.lambda$init$1(PendingAckHandleImpl.java:185)
~[io.streamnative-pulsar-broker-3.0.4.6.jar:3.0.4.6]
...
```
### Modifications
Add `MetadataStoreException` and `BKException` into the retriable error list
### 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]