This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new f96de8eae00 [fix](routine-load) avoid routine load pause for check 
transaction status fail (#32638) (#37444)
f96de8eae00 is described below

commit f96de8eae00a1678ef3542a9fc619a0018e2ffb3
Author: hui lai <1353307...@qq.com>
AuthorDate: Tue Jul 9 10:09:56 2024 +0800

    [fix](routine-load) avoid routine load pause for check transaction status 
fail (#32638) (#37444)
    
    pick #32638
    
    Co-authored-by: HHoflittlefish777 
<77738092+hhoflittlefish...@users.noreply.github.com>
---
 .../main/java/org/apache/doris/load/routineload/RoutineLoadJob.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
 
b/fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
index 7723224e5a2..58eff713b45 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
@@ -1085,7 +1085,8 @@ public abstract class RoutineLoadJob extends 
AbstractTxnStateChangeCallback impl
                 return;
             }
             RoutineLoadTaskInfo routineLoadTaskInfo = 
routineLoadTaskInfoOptional.get();
-            if (routineLoadTaskInfo.getTxnStatus() != 
TransactionStatus.COMMITTED) {
+            if (routineLoadTaskInfo.getTxnStatus() != 
TransactionStatus.COMMITTED
+                        && routineLoadTaskInfo.getTxnStatus() != 
TransactionStatus.VISIBLE) {
                 // TODO(cmy): Normally, this should not happen. But for safe 
reason, just pause the job
                 String msg = String.format(
                         "should not happen, we find that task %s is not 
COMMITTED when handling afterVisble."


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to