Repository navigation
MOD-21358: Reject out-of-range numeric configuration at module load - #1708
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1708 +/- ##
=======================================
Coverage 87.83% 87.83%
=======================================
Files 18 18
Lines 6723 6723
=======================================
Hits 5905 5905
Misses 818 818 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
TalBarYakar
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RedisJSON currently accepts out-of-range
json-rdb-dictionary-max-memory-percentmodule arguments at startup. Adopt the merged SDK fix from RedisLabsModules/redismodule-rs#492 (019f2a0bb240cab7fd41f8735f242202225e0d9c) so invalid numeric values are rejected at load.Updates only the two workspace SDK pins and their four lockfile entries. Liran's regression tests remain owned by #1705; they were copied unchanged from its head
b5ba16adc6311b32d2ec553b846e066949b66532for local validation and are not duplicated here.Validation on Redis 8.10.0, macOS arm64:
Linux x86_64 verification also completed on Redis unstable
b540ca49with jemalloc 5.3.0 and an optimized build of this PR head (fb052f1): all four unchanged tests passed. An external Python trace observer verified both COW assertions executed (the test file itself was unchanged). Observed COW bytes: dictionary disabled 2,646,016; 100% budget 6,946,816; 1% budget 2,494,464. The 1% budget was 68,685 bytes, with the test's existing 1 MiB slack. Both memory bounds passed. This completes the previously missing Linux/jemalloc assertion coverage; hosted CI remains a separate merge requirement. The local test container was removed and cleanup verified.Tracks MOD-21358.
Note
Low Risk
Dependency-only pin update with no application code changes; behavior tightens startup validation for one existing config knob.
Overview
Bumps the workspace
redis-moduleandredis-module-macrosgit pins (and matchingCargo.lockentries) to019f2a0from redismodule-rs#492, adopting SDK-side validation for numeric module configuration.With this revision, out-of-range startup values for
json-rdb-dictionary-max-memory-percent(already declared with 0–100 in the module macro) are rejected at load instead of being accepted; valid values like the default and 0 / 100 still load as before.Reviewed by Cursor Bugbot for commit fb052f1. Bugbot is set up for automated code reviews on this repo. Configure here.