JNSimba commented on code in PR #257: URL: https://github.com/apache/doris-flink-connector/pull/257#discussion_r1414811491
########## flink-doris-connector/src/main/java/org/apache/doris/flink/sink/writer/DorisWriter.java: ########## @@ -130,6 +130,9 @@ private void abortLingeringTransactions(Collection<DorisWriterState> recoveredSt if(!state.getLabelPrefix().equals(labelPrefix)){ LOG.warn("Label prefix from previous execution {} has changed to {}.", state.getLabelPrefix(), executionOptions.getLabelPrefix()); } + if (state.getDatabase() == null || state.getTable() == null) { + continue; Review Comment: Thank you for your contribution. Would it be better to add some logs here to inform users that the historical state cannot be aborted? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org