Skip to content

Commit 096af61

Browse files
committed
Print to log if decoding job failed
1 parent 4890bc2 commit 096af61

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

topic/src/main/java/tech/ydb/topic/read/impl/PartitionSessionImpl.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ public CompletableFuture<Void> addBatches(List<YdbTopic.StreamReadMessage.ReadRe
166166
}
167167

168168
CompletableFuture.runAsync(() -> decode(newBatch), decompressionExecutor)
169-
.thenRun(() -> {
169+
.whenComplete((res, th) -> {
170+
if (th != null) {
171+
logger.error("[{}] Message decoding failed with error: ", fullId, th);
172+
return;
173+
}
170174
boolean haveNewBatchesReady = false;
171175
decodingBatchesLock.lock();
172176

0 commit comments

Comments
 (0)