Skip to content
Prev Previous commit
Next Next commit
Fix commit metrics bug
  • Loading branch information
Dylan Wong committed Jul 31, 2025
commit 85903071d6fc732fa259989b1400ef84f42df87a
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ class RocksDB(
* - Sync the checkpoint dir files to DFS
*/
def commit(): (Long, StateStoreCheckpointInfo) = {
// Reset the commit metrics before commit
commitLatencyMs.clear()

val newVersion = loadedVersion + 1
try {
logInfo(log"Flushing updates for ${MDC(LogKeys.VERSION_NUM, newVersion)}")
Expand Down