Skip to content

[BUG] Snapshot recovery is dead code — SAVE data is never loaded back #9

Description

@Hogwarts-coder10

Problem:

KedisStore.init only calls recover_from_aof(). load() (which reads dump.json) is never called anywhere in the codebase.

# store.py:42
self.recover_from_aof()   # only this runs on startup
# load() is defined at store.py:321 but has zero call sites elsewhere

Running SAVE returns OK, but on restart that data is never read back — only AOF replay restores state. The snapshot file is currently write-only.

Fix:

Either wire load() into startup with proper precedence (load snapshot baseline, then replay only AOF entries written after the snapshot), or
Pull SAVE/snapshotting out of the README/feature list until it's actually connected to recovery.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions