Skip to content

Commit

Permalink
[hotfix][API/DataStream] Log the right syncDurationMillis time
Browse files Browse the repository at this point in the history
  • Loading branch information
Myracle authored and pnowojski committed Aug 21, 2024
1 parent 56c8199 commit 9399e66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ private boolean takeSnapshotSync(
checkpointStorage.clearCacheFor(checkpointId);
}

checkpointMetrics.setSyncDurationMillis((System.nanoTime() - started) / 1_000_000);

LOG.debug(
"{} - finished synchronous part of checkpoint {}. Alignment duration: {} ms, snapshot duration {} ms, is unaligned checkpoint : {}",
taskName,
Expand All @@ -768,7 +770,6 @@ private boolean takeSnapshotSync(
checkpointMetrics.getSyncDurationMillis(),
checkpointOptions.isUnalignedCheckpoint());

checkpointMetrics.setSyncDurationMillis((System.nanoTime() - started) / 1_000_000);
return true;
}

Expand Down

0 comments on commit 9399e66

Please sign in to comment.