zhanghaou commented on code in PR #21965:
URL: https://github.com/apache/pulsar/pull/21965#discussion_r1477599281
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentReplicator.java:
##########
@@ -334,6 +334,9 @@ public void sendComplete(Exception exception) {
log.error("[{}] Error producing on remote broker",
replicator.replicatorId, exception);
// cursor should be rewinded since it was incremented when
readMoreEntries
replicator.cursor.rewind();
+
+ replicator.cursor.cancelPendingReadRequest();
Review Comment:
Indeed. Call cancelPendingReadRequest() first and then rewind cursor can
reduce it.
--
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]