MOD-8862: Add DebugCTX mechanism and DebugIndexesScanner#5672
Merged
MOD-8862: Add DebugCTX mechanism and DebugIndexesScanner#5672
Conversation
This reverts commit b842ce9.
GuyAv46
reviewed
Feb 23, 2025
Collaborator
GuyAv46
left a comment
There was a problem hiding this comment.
Very nice implementation
Some styling comments and a few suggestions
Keep up the good work!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5672 +/- ##
==========================================
+ Coverage 88.04% 88.05% +0.01%
==========================================
Files 197 197
Lines 35577 35703 +126
==========================================
+ Hits 31322 31437 +115
- Misses 4255 4266 +11 ☔ View full report in Codecov by Sentry. |
… not a debug scanner' error
940a102 to
1e64b19
Compare
alonre24
reviewed
Feb 25, 2025
alonre24
reviewed
Feb 25, 2025
alonre24
reviewed
Feb 25, 2025
alonre24
reviewed
Feb 25, 2025
alonre24
reviewed
Feb 25, 2025
alonre24
reviewed
Feb 25, 2025
alonre24
previously approved these changes
Feb 26, 2025
GuyAv46
reviewed
Feb 26, 2025
alonre24
approved these changes
Feb 26, 2025
Collaborator
Author
|
\backport |
Collaborator
Author
|
/backport |
Contributor
|
Successfully created backport PR for |
redisearch-backport-pull-request bot
pushed a commit
that referenced
this pull request
Mar 2, 2025
* Create dbg ctx and dbgIndScan * Fix * fixing mechanism and pytest * Add pause before scan mechanism and pytest * Revert "Add pause before scan mechanism and pytest" This reverts commit b842ce9. * Re-adding 'Add pause before scan mechanism and pytest' * fix testDebugHelp * fixing Guy's comment + skipping on cluster in pytest * Move volatile pause to BG scanner, move debug scanner flag to base IndexesScanner * fix pytest * thread safety * Cover more code * pause before scan coverage * fix - can't create a flow to reach 'Debug mode enabled but scanner is not a debug scanner' error * fixing Alon's comment * wrong arity check and comment on not used function * format (cherry picked from commit a0536fe)
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 2, 2025
MOD-8862: Add DebugCTX mechanism and DebugIndexesScanner (#5672) * Create dbg ctx and dbgIndScan * Fix * fixing mechanism and pytest * Add pause before scan mechanism and pytest * Revert "Add pause before scan mechanism and pytest" This reverts commit b842ce9. * Re-adding 'Add pause before scan mechanism and pytest' * fix testDebugHelp * fixing Guy's comment + skipping on cluster in pytest * Move volatile pause to BG scanner, move debug scanner flag to base IndexesScanner * fix pytest * thread safety * Cover more code * pause before scan coverage * fix - can't create a flow to reach 'Debug mode enabled but scanner is not a debug scanner' error * fixing Alon's comment * wrong arity check and comment on not used function * format (cherry picked from commit a0536fe) Co-authored-by: lerman25 <[email protected]>
lerman25
added a commit
that referenced
this pull request
Jun 5, 2025
* Create dbg ctx and dbgIndScan * Fix * fixing mechanism and pytest * Add pause before scan mechanism and pytest * Revert "Add pause before scan mechanism and pytest" This reverts commit b842ce9. * Re-adding 'Add pause before scan mechanism and pytest' * fix testDebugHelp * fixing Guy's comment + skipping on cluster in pytest * Move volatile pause to BG scanner, move debug scanner flag to base IndexesScanner * fix pytest * thread safety * Cover more code * pause before scan coverage * fix - can't create a flow to reach 'Debug mode enabled but scanner is not a debug scanner' error * fixing Alon's comment * wrong arity check and comment on not used function * format
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jun 10, 2025
* MOD-8862: Add DebugCTX mechanism and DebugIndexesScanner (#5672) * Create dbg ctx and dbgIndScan * Fix * fixing mechanism and pytest * Add pause before scan mechanism and pytest * Revert "Add pause before scan mechanism and pytest" This reverts commit b842ce9. * Re-adding 'Add pause before scan mechanism and pytest' * fix testDebugHelp * fixing Guy's comment + skipping on cluster in pytest * Move volatile pause to BG scanner, move debug scanner flag to base IndexesScanner * fix pytest * thread safety * Cover more code * pause before scan coverage * fix - can't create a flow to reach 'Debug mode enabled but scanner is not a debug scanner' error * fixing Alon's comment * wrong arity check and comment on not used function * format * MOD-7795: Background indexing memory limitation & configuration * fix test * fix-test2 * fix flaky OOM tests MOD-9406 (#5941) * fix flaky * comment * change to ceil * [MOD-9560] Change default config value for _BG_INDEX_MEM_PCT_THR (#6053) * change default value * change default value in config pytest * change index oom tests to lower value then new default * change debug commands tests to lower value then default value * change default value of set tight memory functions * 100testv1 * test default value * [MOD-9560] Change default config value for _BG_INDEX_MEM_PCT_THR * fix json * [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM * skip query error test * fix typo * support different default values * change test config * fix config * skip non cluster * [MOD-9560] Revert marking index as faulty after reaching OOM * [MOD-9372] - Add GIL release in OOM wait * remove cargo * fix pytest
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.
This pull request adds several new ft.debug commands, DebugCTX global and a DebugIndexesScanner "derived" from IndexesScanner.
The new debug commands are:
Changing 1,2,3 will put DebugCTX in debug mode, which is revertible by setting negative/zero values.
DebugCTX can be used for other debugging mechanism other then indexes scan.
Also remove whitespaces from a previous pytest