Merge pull request #393 from ukwa/checkpoint-success-stats-392

Only update last checkpoint stats if the checkpoint completed, for #392.
This commit is contained in:
Andy Jackson
2021-05-28 14:20:06 +01:00
committed by GitHub
@@ -308,12 +308,14 @@ public class CheckpointService implements Lifecycle, ApplicationContextAware, Ha
appCtx.publishEvent(new CheckpointSuccessEvent(this,
checkpointInProgress));
// Record the stats associated with this successfully-completed checkpoint:
lastCheckpointSnapshot = controller.getStatisticsTracker().getSnapshot();
} catch (Exception e) {
checkpointFailed(e);
} finally {
checkpointInProgress.writeValidity(
controller.getStatisticsTracker().getProgressStamp());
lastCheckpointSnapshot = controller.getStatisticsTracker().getSnapshot();
// close (incl. release locks)
long finishStart = System.currentTimeMillis();
for (Checkpointable c : toCheckpoint.values()) {