eolivelli commented on a change in pull request #14286:
URL: https://github.com/apache/pulsar/pull/14286#discussion_r828239356
##########
File path:
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java
##########
@@ -848,11 +944,14 @@ public boolean cancelPendingReadRequest() {
if (log.isDebugEnabled()) {
log.debug("[{}] [{}] Cancel pending read request",
ledger.getName(), name);
}
- return WAITING_READ_OP_UPDATER.getAndSet(this, null) != null;
+ // cancel all read op
+ return WAITING_READ_OP_UPDATER.getAndSet(this, null) != null
+ | WAITING_READ_OP_UPDATER_BY_MAX_READ_POSITION.getAndSet(this,
null) != null;
Review comment:
Did you mean '||' instead of "|" ?
--
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]