sanpwc commented on code in PR #3467:
URL: https://github.com/apache/ignite-3/pull/3467#discussion_r1547528339
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/exception/PrimaryReplicaMissException.java:
##########
@@ -28,6 +30,17 @@
public class PrimaryReplicaMissException extends IgniteInternalException
implements ExpectedReplicationException {
private static final long serialVersionUID = 8755220779942651494L;
+ /**
+ * Constructor.
+ *
+ * @param txId Transaction id.
+ * @param expectedEnlistmentConsistencyToken Expected enlistment
consistency token, {@code null} if absent.
+ */
+ public PrimaryReplicaMissException(UUID txId, Long
expectedEnlistmentConsistencyToken) {
+ super(REPLICA_MISS_ERR, format("The primary replica has changed
[txId={}, expectedEnlistmentConsistencyToken={}].",
Review Comment:
Let's also log current lease start time, or basically all information about
current lease, if not null.
--
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]