Make commit always flush.

This commit is contained in:
Deklan Dieterly 2014-03-07 17:21:46 -07:00
parent 75787e5b37
commit 9cf71380e1
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ public class MetricMessageEventHandler implements EventHandler<MetricMessageEven
} }
if (sequence % batchSize == (batchSize - 1)) { if (sequence % batchSize == (batchSize - 1)) {
TimerContext context = commitTimer.time(); TimerContext context = commitTimer.time();
verticaMetricRepository.commitBatch(); verticaMetricRepository.flush();
context.stop(); context.stop();
commitMeter.mark(); commitMeter.mark();
} }

View File

@ -104,7 +104,7 @@ public class VerticaMetricRepository extends VerticaRepository {
} }
public void commitBatch() { private void commitBatch() {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
metricsBatch.execute(); metricsBatch.execute();
stagedDefinitionsBatch.execute(); stagedDefinitionsBatch.execute();