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
feat: introduce timeout and retry parameter for BM executor shutdown
The awaitBinaryStorageExecutorTermination() in
MonitoredClusteringBuilderState is extended with parameters that allow
the timeout for the shutdown and the number of attempts to make to be
specified.
(also implement 2 small cleanups of code causing a compile error
depending on settings and a FB warning suppression that is no longer
necessary)
Copy file name to clipboardExpand all lines: com.avaloq.tools.ddk.xtext.builder/src/com/avaloq/tools/ddk/xtext/builder/MonitoredClusteringBuilderState.java
if (currQueuedTaskCount < prevQueuedTaskCount || currActiveTaskCount < prevActiveTaskCount) {
823
+
LOGGER.warn("Binary resource storage tasks not completed in time, start with {} queued / {} active; now have {} / {}", prevQueuedTaskCount, prevActiveTaskCount, currQueuedTaskCount, currActiveTaskCount);
824
+
if (retries < retryCount) {
825
+
retries += 1;
826
+
LOGGER.warn("retrying shutdown, attempt {} of {}", retries, retryCount);
827
+
prevQueuedTaskCount = currQueuedTaskCount;
828
+
prevActiveTaskCount = currActiveTaskCount;
829
+
}
830
+
} else {
831
+
LOGGER.warn("Binary resource storage tasks not completed in time, not making progress, stuck on {} / {} queued / active tasks", currQueuedTaskCount, currActiveTaskCount);
832
+
stuck = true;
833
+
}
834
+
}
835
+
836
+
} while (!terminated && !stuck && retries < retryCount);
0 commit comments