denis-chudov commented on code in PR #7482:
URL: https://github.com/apache/ignite-3/pull/7482#discussion_r2789504660


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TxStateMeta.java:
##########
@@ -191,6 +237,23 @@ public TxState txState() {
         return txLabel;
     }
 
+    public @Nullable TxStateMetaExceptionInfo exceptionInfo() {
+        return exceptionInfo;
+    }
+
+    /**
+     * Records exceptional information by mutating tx state or by creating a 
new one.
+     *
+     * @param old previous TxStateMeta.
+     * @param throwable to record
+     */
+    public static TxStateMeta recordExceptionInfo(TxStateMeta old, Throwable 
throwable) {
+        TxStateMetaExceptionInfo exceptionInfo = fromThrowable(throwable);
+        return old == null
+                ? builder(old, ABORTED).exceptionInfo(exceptionInfo).build()

Review Comment:
   I'm still sure that you don't need this method at all, see my comment for 
`rollbackWithExceptionAsync`



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

Reply via email to