Skip to content

MOD-14672 RDB load - return error on failure#1535

Open
AvivDavid23 wants to merge 1 commit into8.6from
MOD-14672-8.6
Open

MOD-14672 RDB load - return error on failure#1535
AvivDavid23 wants to merge 1 commit into8.6from
MOD-14672-8.6

Conversation

@AvivDavid23
Copy link
Copy Markdown
Contributor

@AvivDavid23 AvivDavid23 commented Apr 7, 2026

Note

Medium Risk
Touches RDB deserialization paths; while the change is small, it affects startup/data loading behavior and could alter how corrupted/unsupported RDBs are handled.

Overview
Improves failure handling during legacy RDB load. The legacy node-type decoder in backward.rs is switched from From<u64> (panic on unknown) to TryFrom<u64> so unknown node types return a RedisError and propagate via ?.

Avoids panics in value_rdb_load_json. The RDB-load path now propagates serde_json::Serialize and String::from_utf8 failures, and unsupported encver values return a descriptive RedisError instead of panicking.

Reviewed by Cursor Bugbot for commit 8cf64ec. Bugbot is set up for automated code reviews on this repo. Configure here.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.51%. Comparing base (f05f34d) to head (8cf64ec).

Files with missing lines Patch % Lines
redis_json/src/redisjson.rs 33.33% 4 Missing ⚠️
redis_json/src/backward.rs 83.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.6    #1535      +/-   ##
==========================================
- Coverage   77.57%   77.51%   -0.07%     
==========================================
  Files          15       15              
  Lines        3835     3838       +3     
==========================================
  Hits         2975     2975              
- Misses        860      863       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant