Demogorgon314 commented on code in PR #20044:
URL: https://github.com/apache/pulsar/pull/20044#discussion_r1161371766
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/TableViewImpl.java:
##########
@@ -266,18 +270,15 @@ private void readTailMessages(Reader<T> reader) {
handleMessage(msg);
readTailMessages(reader);
}).exceptionally(ex -> {
- logException(
- String.format("Reader %s was interrupted while
reading tail messages.",
- reader.getTopic()), ex);
+ if (ex.getCause() instanceof
PulsarClientException.AlreadyClosedException) {
+ log.error("Reader {} was closed while reading tail
messages.",
+ reader.getTopic(), ex);
+ } else {
+ log.warn("Reader {} was interrupted while reading tail
messages. "
Review Comment:
Do we need to delay few milliseconds before retry?
--
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]