Skip to content

fix(data): recalibrate checkpoint counters#395

Open
shifang0511 wants to merge 1 commit into
TencentCloud:mainfrom
shifang0511:fix/checkpoint-recalibrate-157
Open

fix(data): recalibrate checkpoint counters#395
shifang0511 wants to merge 1 commit into
TencentCloud:mainfrom
shifang0511:fix/checkpoint-recalibrate-157

Conversation

@shifang0511

Copy link
Copy Markdown

Summary

  • Add CheckpointManager.recalibrate() to sync drift-prone L0/L1 counters with live store counts, falling back to JSONL line counts when no store is available.
  • Recalibrate during core startup before scheduler restore and after memory-cleaner cleanup.
  • Add regression coverage for JSONL fallback, store-preferred counts, and cleaner-triggered recalibration.

Test Plan

  • npm test
  • npm run build
  • git diff --check

Fixes #157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[good first issue]🎯 fix(data): checkpoint counters never decrease — drift from actual data after cleanup

1 participant