Lalant commented on code in PR #7482:
URL: https://github.com/apache/ignite-3/pull/7482#discussion_r2917717748
##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/TxStateMetaFinishing.java:
##########
@@ -50,7 +74,55 @@ public TxStateMetaFinishing(
@Nullable Boolean isFinishingDueToTimeout,
@Nullable String txLabel
) {
- super(TxState.FINISHING, txCoordinatorId, commitPartitionId, null,
null, null, null, isFinishingDueToTimeout, txLabel);
+ this(txCoordinatorId, commitPartitionId, isFinishingDueToTimeout,
txLabel, null);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param txCoordinatorId Transaction coordinator id.
+ * @param commitPartitionId Commit partition id.
+ * @param isFinishingDueToTimeout {@code true} if transaction is finishing
due to timeout, {@code false} otherwise.
+ * @param txLabel Transaction label.
+ * @param finishReason Exception which caused tx abortion.
+ */
+ public TxStateMetaFinishing(
+ @Nullable UUID txCoordinatorId,
+ @Nullable ZonePartitionId commitPartitionId,
+ @Nullable Boolean isFinishingDueToTimeout,
+ @Nullable String txLabel,
+ @Nullable Throwable finishReason
+ ) {
+ this(
+ txCoordinatorId,
+ commitPartitionId,
+ isFinishingDueToTimeout,
+ txLabel,
+ finishReason,
+ null
+ );
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param txCoordinatorId Transaction coordinator id.
+ * @param commitPartitionId Commit partition id.
+ * @param isFinishingDueToTimeout {@code true} if transaction is finishing
due to timeout, {@code false} otherwise.
+ * @param txLabel Transaction label.
+ * @param finishReason Exception which caused tx abortion.
+ * @param lastExceptionErrorCode Error code of the last exception.
+ */
+ public TxStateMetaFinishing(
+ @Nullable UUID txCoordinatorId,
+ @Nullable ZonePartitionId commitPartitionId,
+ @Nullable Boolean isFinishingDueToTimeout,
+ @Nullable String txLabel,
+ @Nullable Throwable finishReason,
+ @Nullable Integer lastExceptionErrorCode
+ ) {
+ super(TxState.FINISHING, txCoordinatorId, commitPartitionId, null,
null,
+ null, null, isFinishingDueToTimeout, txLabel, finishReason,
lastExceptionErrorCode);
Review Comment:
Cleaned up
--
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]