Skip to content

Commit 80a729c

Browse files
author
liwen.2022
committed
optimize: wakeup pusher after pending response
Change-Id: I0a5206902443bf8089abdab65713624f687c6ee6
1 parent 9703558 commit 80a729c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dledger/src/main/java/io/openmessaging/storage/dledger/DLedgerEntryPusher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ private void sendBatchAppendEntryRequest() throws Exception {
793793
responseFuture.whenComplete((x, ex) -> {
794794
try {
795795
pendingTotalSize.addAndGet(-1 * entriesSize);
796+
wakeup();
796797
PreConditions.check(ex == null, DLedgerResponseCode.UNKNOWN);
797798
DLedgerResponseCode responseCode = DLedgerResponseCode.valueOf(x.getCode());
798799
switch (responseCode) {

0 commit comments

Comments
 (0)