Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -827,14 +827,7 @@ public LogAppendInfo appendRecordsToLeader(MemoryLogRecords memoryLogRecords, in
throw new LogStorageException(
"Error while appending records to " + tableBucket, e);
}

// we may need to increment high watermark if isr could be down to 1 or the
// replica count is 1.
boolean hwIncreased = maybeIncrementLeaderHW(logTablet, clock.milliseconds());

if (hwIncreased) {
tryCompleteDelayedOperations();
}
maybeIncrementLeaderHW(logTablet, clock.milliseconds());

return appendInfo;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ void testCompleteDelayedFetchLog() throws Exception {
future::complete);
assertThat(future.get()).containsOnly(new ProduceLogResultForBucket(tb, 0, 10L));

// check and complete manually
numComplete = delayedFetchLogManager.checkAndComplete(delayedTableBucketKey);
assertThat(numComplete).isEqualTo(1);
assertThat(delayedFetchLogManager.numDelayed()).isEqualTo(0);
assertThat(delayedFetchLogManager.watched()).isEqualTo(0);

Expand Down