add flag to make CSV upload wait until entries are flushed
To make it easier/possible to write stable unit test the CSV upload can optionally wait until all entries have been flushed to disk. This is necessary for tests that ingest data and then read the data.
This commit is contained in:
@@ -134,6 +134,12 @@ public class PerformanceDb implements AutoCloseable {
|
||||
LOGGER.info("", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (entries.isForceFlush()) {
|
||||
LOGGER.info("flush triggered via entries.isForceFlush()");
|
||||
dataStore.flush();
|
||||
entries.notifyFlushed();
|
||||
}
|
||||
}
|
||||
|
||||
} catch (final RuntimeException e) {
|
||||
|
||||
Reference in New Issue
Block a user