Skip to content

Commit

Permalink
[fix](routine-load) avoid routine load pause for check transaction st…
Browse files Browse the repository at this point in the history
…atus fail (apache#32638)
  • Loading branch information
sollhui authored Mar 22, 2024
1 parent 50e999d commit 7bb1d79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,8 @@ public void afterVisible(TransactionState txnState, boolean txnOperated) {
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."
Expand Down

0 comments on commit 7bb1d79

Please sign in to comment.