Skip to content

Commit d664306

Browse files
committed
SyncWriter.flush() now throw Exception when previous task was failed
1 parent 54ea1d5 commit d664306

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

topic/src/main/java/tech/ydb/topic/write/impl/WriterImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ protected CompletableFuture<Void> flushImpl() {
276276
incomingQueueLock.lock();
277277

278278
try {
279-
return this.lastAcceptedMessageFuture.isDone()
280-
? CompletableFuture.completedFuture(null)
281-
: this.lastAcceptedMessageFuture.thenApply(v -> null);
279+
return this.lastAcceptedMessageFuture.thenApply(v -> null);
282280
} finally {
283281
incomingQueueLock.unlock();
284282
}

0 commit comments

Comments
 (0)