Hisoka-X commented on code in PR #6570:
URL: https://github.com/apache/seatunnel/pull/6570#discussion_r1537378102
##########
seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/sink/writer/DorisSinkWriter.java:
##########
@@ -222,9 +220,11 @@ private void checkDone() {
}
}
- private void checkLoadException() {
+ private void checkLoadExceptionAndResetThread() {
if (loadException != null) {
throw new RuntimeException("error while loading data.",
loadException);
+ } else {
+ executorThread = Thread.currentThread();
Review Comment:
Before this PR, the `executorThread` value not right. So that stream load
check error thread can not interupt write thread normally.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]