MCPcopy Create free account
hub / github.com/questdb/questdb / flushJobs

Method flushJobs

core/src/main/java/io/questdb/log/LogFactory.java:319–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317 }
318
319 @TestOnly
320 public void flushJobs() {
321 pauseThread();
322 for (int i = 0, n = jobs.size(); i < n; i++) {
323 LogWriter job = jobs.get(i);
324 if (job != null) {
325 try {
326 job.drain(0);
327 } catch (Exception th) {
328 // Exception means we cannot log anymore. Perhaps network is down or disk is full.
329 // Switch to the next job.
330 }
331 }
332 }
333 startThread();
334 }
335
336 @TestOnly
337 public ObjHashSet<LogWriter> getJobs() {

Callers 7

failedMethod · 0.80
testHexLongWriteMethod · 0.80
testMultiplexingMethod · 0.80
testPackageHierarchyMethod · 0.80

Calls 5

pauseThreadMethod · 0.95
startThreadMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65
drainMethod · 0.65

Tested by 7

failedMethod · 0.64
testHexLongWriteMethod · 0.64
testMultiplexingMethod · 0.64
testPackageHierarchyMethod · 0.64