Fix forkless save remaining time estimate - #4468
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
f87e3d9 to
ca8b1ee
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## forkless #4468 +/- ##
============================================
- Coverage 79.69% 79.40% -0.29%
============================================
Files 175 175
Lines 94841 93222 -1619
============================================
- Hits 75581 74024 -1557
+ Misses 19260 19198 -62
🚀 New features to boost your workflow:
|
…imate forkless_estimated_seconds_remaining sampled the live key count now, but compared it against dbentries_processed, which counts progress through the point-in-time snapshot taken when the save started. If keys were deleted during the save, the live count could drop below dbentries_processed and the estimate went negative. Use server.stat_current_save_keys_total, the key count captured when the save started, so both sides of the subtraction share the same baseline and the estimate stays non-negative. Signed-off-by: Nitai Caro <caronita@amazon.com>
ca8b1ee to
4487472
Compare
forkless_estimated_seconds_remainingsampled the live key count now, but compared it againstdbentries_processed, which counts progress through the point-in-time snapshot taken when the save started. If keys were deleted during the save, the live count could drop below dbentries_processed and the estimate went negative.Use server.stat_current_save_keys_total, the key count captured when the save started, so both sides of the subtraction share the same baseline and the estimate stays non-negative.