codelipenghui commented on code in PR #17056:
URL: https://github.com/apache/pulsar/pull/17056#discussion_r943080145
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java:
##########
@@ -791,7 +791,8 @@ public synchronized void
readEntriesFailed(ManagedLedgerException exception, Obj
// Notify the consumer only if all the messages were already
acknowledged
consumerList.forEach(Consumer::reachedEndOfTopic);
}
- } else if (exception.getCause() instanceof
TransactionBufferException.TransactionNotSealedException) {
+ } else if (exception.getCause() instanceof
TransactionBufferException.TransactionNotSealedException
+ || exception.getCause() instanceof
ManagedLedgerException.OffloadReadHandleClosedException) {
Review Comment:
Looks like we don't want to handle the race condition of trimming ledgers
and reading data, instead, to re-trigger the read operation?
--
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]