Skip to content

Commit

Permalink
[hotfix][connector/flink] Fix Flink sink not stop when exception is o…
Browse files Browse the repository at this point in the history
…ccurs. (#303)
  • Loading branch information
loserwang1024 authored Jan 17, 2025
1 parent 052492f commit bda3589
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void invoke(RowData value, SinkFunction.Context context) throws IOExcepti
CompletableFuture<Void> writeFuture = writeRow(value.getRowKind(), internalRow);
writeFuture.exceptionally(
exception -> {
if (this.asyncWriterException != null) {
if (this.asyncWriterException == null) {
this.asyncWriterException = exception;
}
return null;
Expand Down

0 comments on commit bda3589

Please sign in to comment.