in adb3client/src/main/java/com/alibaba/cloud/analyticdb/adb3client/impl/ExecutionPool.java [458:482]
private void triggerTryFlush() {
synchronized (clientMap) {
boolean force = false;
if (forceFlushInterval > 0L) {
long current = System.currentTimeMillis();
if (current - lastForceFlushMs > forceFlushInterval) {
force = true;
lastForceFlushMs = current;
}
}
for (ActionCollector collector : clientMap.values()) {
try {
if (force) {
collector.flush(true);
} else {
collector.tryFlush();
}
} catch (AdbClientException e) {
fatalException = new Tuple<>(LocalDateTime.now().toString(), e);
break;
}
}
}
}