Skip to content
Merged
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 @@ -174,7 +174,7 @@ public void processElement(StreamRecord<CdcMultiplexRecord> element) throws Exce
try {
write.write(optionalConverted.get());
} catch (Exception e) {
throw new IOException(e);
throw new IOException("Exception occurs for writing record to table: " + tableId, e);
}
}

Expand Down Expand Up @@ -235,12 +235,17 @@ protected List<MultiTableCommittable> prepareCommit(boolean waitCompaction, long
for (Map.Entry<Identifier, StoreSinkWrite> entry : writes.entrySet()) {
Identifier key = entry.getKey();
StoreSinkWrite write = entry.getValue();
committables.addAll(
write.prepareCommit(waitCompaction, checkpointId).stream()
.map(
committable ->
MultiTableCommittable.fromCommittable(key, committable))
.collect(Collectors.toList()));
try {
committables.addAll(
write.prepareCommit(waitCompaction, checkpointId).stream()
.map(
committable ->
MultiTableCommittable.fromCommittable(
key, committable))
.collect(Collectors.toList()));
} catch (Exception e) {
throw new IOException("Failed to prepare commit for table: " + key.toString(), e);
}
}
return committables;
}
Expand Down
Loading