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) (apache#37444)

pick apache#32638

Co-authored-by: HHoflittlefish777 <77738092+HHoflittlefish777@users.noreply.github.com>
  • Loading branch information
sollhui and sollhui committed Jul 9, 2024
1 parent f030c43 commit f96de8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,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 f96de8e

Please sign in to comment.