Lalant commented on code in PR #7482:
URL: https://github.com/apache/ignite-3/pull/7482#discussion_r2917625130
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TxStateMetaAbandoned.java:
##########
@@ -52,7 +52,48 @@ public TxStateMetaAbandoned(
@Nullable InternalTransaction tx,
@Nullable String txLabel
) {
- super(ABANDONED, txCoordinatorId, commitPartitionId, null, tx, null,
null, null, txLabel);
+ this(txCoordinatorId, commitPartitionId, tx, txLabel, null);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param txCoordinatorId Transaction coordinator id.
+ * @param commitPartitionId Commit partition replication group id.
+ * @param tx Transaction object. This parameter is not {@code null} only
for transaction coordinator.
+ * @param txLabel Transaction label.
+ * @param exceptionInfo Exception info for exceptional abort.
+ */
+ public TxStateMetaAbandoned(
+ @Nullable UUID txCoordinatorId,
+ @Nullable ZonePartitionId commitPartitionId,
+ @Nullable InternalTransaction tx,
+ @Nullable String txLabel,
+ @Nullable Throwable exceptionInfo
+ ) {
+ this(txCoordinatorId, commitPartitionId, tx, txLabel, exceptionInfo,
null);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param txCoordinatorId Transaction coordinator id.
+ * @param commitPartitionId Commit partition replication group id.
+ * @param tx Transaction object. This parameter is not {@code null} only
for transaction coordinator.
+ * @param txLabel Transaction label.
+ * @param exceptionInfo Exception info for exceptional abort.
+ * @param lastExceptionErrorCode Error code of the last exception.
+ */
+ public TxStateMetaAbandoned(
+ @Nullable UUID txCoordinatorId,
+ @Nullable ZonePartitionId commitPartitionId,
+ @Nullable InternalTransaction tx,
+ @Nullable String txLabel,
+ @Nullable Throwable exceptionInfo,
+ @Nullable Integer lastExceptionErrorCode
+ ) {
+ super(ABANDONED, txCoordinatorId, commitPartitionId, null, tx, null,
null, null, txLabel, exceptionInfo,
+ lastExceptionErrorCode);
Review Comment:
I removed all extra constructors
--
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]