JAkutenshi commented on code in PR #6389:
URL: https://github.com/apache/ignite-3/pull/6389#discussion_r2276625661
##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -1124,6 +1143,25 @@ private void
sendSafeTimeSyncIfReplicaReady(CompletableFuture<Replica> replicaFu
});
}
+ private void tryToLogTimeoutFailure(ReplicationGroupId replicaGroupId,
Throwable timeoutException) {
+ Integer currentAttempt =
timeoutAttemptsCounters.computeIfPresent(replicaGroupId, (id, attempts) ->
attempts + 1);
+
+ assert currentAttempt != null;
Review Comment:
Replaced with if statement: in case null entry we just should skip logging,
because it may be the case iif there is the race between the call and replica
stop.
--
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]