Repository navigation
Skip expired hash fields when loading non-preamble RDB on primary - #3091
Conversation
…eing loaded on primary Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
… fields Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #3091 +/- ##
============================================
- Coverage 74.32% 0 -74.33%
============================================
Files 129 0 -129
Lines 71011 0 -71011
============================================
- Hits 52778 0 -52778
+ Misses 18233 0 -18233 🚀 New features to boost your workflow:
|
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
…mary RDB reload Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
edba8e1 to
f631499
Compare
I still would rather not add an info field which is a static value the entire lifetime of the application. There is a log you can go check to see what the values of the RDB load were. |
|
@valkey-io/core-team points to discuss:
|
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
|
@ranshid did we finalize on the decision for this PR? (I dropped off when we were discussing in the core meeting) |
Yes. sorry for the delay. |
Ok! Thank you for the update! |
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
Co-authored-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
|
Thanks @hanxizh9910, great work! |
…lkey-io#3091) ## Summary Fixes valkey-io#2620 Skip loading expired hash fields when a non-preamble RDB is being loaded on a primary server. Propagate `HDEL` to replicas when expired fields are skipped. ## Changes - Updated `rdbLoadObject` signature to accept `rdbflags` and `now` parameters - Added logic to skip expired hash fields during RDB load on primary - Propagate `HDEL` to replicas when `RDBFLAGS_FEED_REPL` is set - Updated all callers of `rdbLoadObject` - Added unit test --------- Signed-off-by: Hanxi Zhang <hanxizh@amazon.com> Co-authored-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
…its AOF replayed A DEBUG RELOAD drops hash fields (and keys) that expired, but the AOF still holds the writes that made them. A node restarted from it holds them again until it expires them, so its DEBUG DIGEST read at once differs, though nothing it serves changed: the walk's test of valkey-io/valkey#3091, replayed on the soak, failed lost-data so. The faults check now judges the restarted node's data once it holds nothing that may expire, as it already asks before the fault. Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
Summary
Fixes #2620
Skip loading expired hash fields when a non-preamble RDB is being loaded on a primary server. Propagate
HDELto replicas when expired fields are skipped.Changes
rdbLoadObjectsignature to acceptrdbflagsandnowparametersHDELto replicas whenRDBFLAGS_FEED_REPLis setrdbLoadObject