Skip to content

Commit

Permalink
[review] Moves JavaDoc into interface and adds @OverRide annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
XComp committed Jun 27, 2024
1 parent 0cdec92 commit 2e853ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,16 @@ PendingCheckpointStats reportPendingCheckpoint(

void reportFailedCheckpoint(FailedCheckpointStats failed);

/**
* Callback when a checkpoint failure without in progress checkpoint. For example, it should be
* callback when triggering checkpoint failure before creating PendingCheckpoint.
*/
void reportFailedCheckpointsWithoutInProgress();

/**
* Creates a new snapshot of the available stats.
*
* @return The latest statistics snapshot.
*/
CheckpointStatsSnapshot createSnapshot();
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ public DefaultCheckpointStatsTracker(
registerMetrics(metricGroup);
}

/**
* Creates a new snapshot of the available stats.
*
* @return The latest statistics snapshot.
*/
@Override
public CheckpointStatsSnapshot createSnapshot() {
CheckpointStatsSnapshot snapshot = latestSnapshot;

Expand Down Expand Up @@ -253,10 +249,7 @@ private void logCheckpointStatistics(AbstractCheckpointStats checkpointStats) {
}
}

/**
* Callback when a checkpoint failure without in progress checkpoint. For example, it should be
* callback when triggering checkpoint failure before creating PendingCheckpoint.
*/
@Override
public void reportFailedCheckpointsWithoutInProgress() {
statsReadWriteLock.lock();
try {
Expand Down

0 comments on commit 2e853ce

Please sign in to comment.