sanpwc commented on code in PR #6376:
URL: https://github.com/apache/ignite-3/pull/6376#discussion_r2279135351
##########
modules/core/src/main/java/org/apache/ignite/internal/hlc/ClockServiceImpl.java:
##########
@@ -70,6 +85,11 @@ public CompletableFuture<Void> waitFor(HybridTimestamp
targetTimestamp) {
@Override
public long maxClockSkewMillis() {
- return maxClockSkewMsSupplier.getAsLong();
+ // -1 is an invalid maxClockSkewMillis, thus it might be used as a
special "non-initialized" value.
+ if (maxClockSkewMillis == -1) {
+ maxClockSkewMillis = maxClockSkewMsSupplier.getAsLong();
+ }
+
+ return maxClockSkewMillis;
Review Comment:
Discussed in private.
--
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]