You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb52c0e
Browse filesBrowse the repository at this point in the historyBrowse files
logger.warn("Agent disconnected with {} command(s) still in progress. Waiting for them to complete before reconnecting.", inProgress);
670
-
671
-
longmaxWaitMs = 300000;
672
-
longwaitedMs = 0;
673
-
while (commandsInProgress.get() > 0 && waitedMs < maxWaitMs) {
674
-
try {
675
-
Thread.sleep(1000);
676
-
} catch (InterruptedExceptione) {
677
-
Thread.currentThread().interrupt();
678
-
break;
679
-
}
680
-
waitedMs += 1000;
681
-
}
682
-
683
-
if (commandsInProgress.get() > 0) {
684
-
logger.warn("Timed out waiting for {} command(s) to complete after {} ms. Proceeding with reconnect — "
685
-
+ "in-progress commands (e.g. snapshot merges) may not have completed.", commandsInProgress.get(), waitedMs);
686
-
} else {
687
-
logger.info("All in-progress commands completed. Proceeding with reconnect.");
688
-
}
669
+
logger.warn("Agent disconnected with {} command(s) still in progress. Reconnecting — local operations (e.g. blockcommit) will continue in their threads.",
670
+
inProgress);
689
671
}
690
-
691
-
logger.info("Reconnecting instead of exiting to avoid losing in-flight work (e.g. snapshot overlays).");
verify(logger).info(eq("All in-progress commands completed. Proceeding with reconnect."));
284
+
verify(logger).warn(eq("Agent disconnected with {} command(s) still in progress. Reconnecting — local operations (e.g. blockcommit) will continue in their threads."),
0 commit comments