xiaoxiangyeyu0 commented on code in PR #7997:
URL: https://github.com/apache/incubator-seata/pull/7997#discussion_r2844992959


##########
common/src/main/java/org/apache/seata/core/model/GlobalStatus.java:
##########
@@ -235,4 +235,17 @@ public static boolean isTwoPhaseHeuristic(GlobalStatus 
status) {
         }
         return false;
     }
+
+    /**
+     * Is one phase prepare failed boolean.
+     *
+     * @param status the status
+     * @return the boolean
+     */
+    public static boolean isOnePhasePrepareFailed(GlobalStatus status) {
+        if (status == GlobalStatus.RollbackRetrying) {

Review Comment:
   This is the global transaction status returned by TC when TM submits a 
global transaction. The newly added branch status will update the global 
transaction status to RollbackRetraining
   这是TM提交全局事务时,TC返回的全局事务状态,新加的分支状态会把全局事务状态更新为RollbackRetrying



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to