Repository navigation
Change default query TIMEOUT to 5000ms and ON_TIMEOUT policy to fail for Flex (disk) indexes - #10395
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f2857e430b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
In Flex mode every index is disk-based, so key the config defaults on SearchDisk_IsEnabled() at registration time. Non-Flex deployments keep the existing 500ms / return defaults. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10395 +/- ##
==========================================
- Coverage 81.51% 81.50% -0.01%
==========================================
Files 558 558
Lines 75289 75289
Branches 30271 30271
==========================================
- Hits 61373 61368 -5
- Misses 13633 13638 +5
Partials 283 283
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



Describe the changes in the pull request
TIMEOUT/search-timeout) is 500ms and the default timeout policy (ON_TIMEOUT/search-on-timeout) isreturn(return partial results on timeout), regardless of whether the deployment uses disk-based (Flex) indexes.SearchDisk_IsEnabled(), i.e.bigredis-enabled), where every index is disk-based, the config defaults registered with Redis becomeTIMEOUT 5000andON_TIMEOUT fail. Non-Flex deployments keep the existing 500ms /returndefaults. Explicitly configured values (module ARGS, config file,CONFIG SET) still override the defaults as before.Which additional issues this PR fixes
Main objects this PR modified
src/config.h: newDEFAULT_QUERY_TIMEOUT_MS_FLEX(5000) andDEFAULT_TIMEOUT_POLICY_FLEX(TimeoutPolicy_Fail) alongside the existing defaultssrc/config.c(RegisterModuleConfig_Local):search-timeoutandsearch-on-timeoutregister Flex-conditional default values (Flex mode is determined before config registration inRedisModule_OnLoad)tests/cpptests/test_cpp_parse_hybrid.cpp: assert the default timeout viaDEFAULT_QUERY_TIMEOUT_MSinstead of a hardcoded 500Mark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.
🤖 Generated with Claude Code