gaoran10 commented on a change in pull request #14830:
URL: https://github.com/apache/pulsar/pull/14830#discussion_r833872565
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/impl/TopicTransactionBuffer.java
##########
@@ -575,6 +575,10 @@ public void run() {
}
}
if (!hasSnapshot) {
+ reader.closeAsync().exceptionally(e -> {
+ log.error("[{}]Transaction buffer reader close
error!", topic.getName(), e);
+ return null;
+ });
Review comment:
Maybe we could add a method like `closeCursor` to close the `Reader`.
--
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]