Lalant commented on code in PR #7482:
URL: https://github.com/apache/ignite-3/pull/7482#discussion_r2752996556


##########
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:
   Left as it is, but call only after tx#finish



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