Skip to content

Commit

Permalink
[fix][broker] Cancel possible pending replay read in cancelPendingRead (
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari authored Oct 1, 2024
1 parent 9eeffe5 commit d2c91b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,9 @@ public synchronized CompletableFuture<Void> disconnectAllConsumers(

@Override
protected void cancelPendingRead() {
if (havePendingRead && cursor.cancelPendingReadRequest()) {
if ((havePendingRead || havePendingReplayRead) && cursor.cancelPendingReadRequest()) {
havePendingRead = false;
havePendingReplayRead = false;
}
}

Expand Down

0 comments on commit d2c91b1

Please sign in to comment.