Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Apr 2, 2024
1 parent 6ad6b2a commit e4e3173
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ public Collection<DorisCommittable> prepareCommit() throws IOException, Interrup
dorisStreamLoad.getHostPort(),
dorisStreamLoad.getDb(),
txnId));
} else {
respFuture.complete(null);
}
} catch (Throwable e) {
respFuture.completeExceptionally(e);
Expand All @@ -302,7 +304,10 @@ public Collection<DorisCommittable> prepareCommit() throws IOException, Interrup

for (CompletableFuture<DorisCommittable> committableFuture : committableFutures) {
try {
committableList.add(committableFuture.get());
DorisCommittable committable = committableFuture.get();
if (committable != null) {
committableList.add(committable);
}
} catch (ExecutionException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit e4e3173

Please sign in to comment.