heesung-sn commented on code in PR #20044:
URL: https://github.com/apache/pulsar/pull/20044#discussion_r1161409510


##########
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:
   I think we can rely on consumer.receive logic for waiting. I don't think we 
need additional delay here.



-- 
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]

Reply via email to