Skip to content

[MOD-9694] Trie prefixes iterator#6119

Merged
LukeMathWalker merged 7 commits intomasterfrom
trie-prefixes-iterator
May 14, 2025
Merged

[MOD-9694] Trie prefixes iterator#6119
LukeMathWalker merged 7 commits intomasterfrom
trie-prefixes-iterator

Conversation

@LukeMathWalker
Copy link
Collaborator

@LukeMathWalker LukeMathWalker commented May 12, 2025

Describe the changes in the pull request

Introduce a new iterator that returns all of the prefixes of a given term, PrefixesIter.
It's equivalent to FindPrefixes in deps/triemap.h.

The test module has been broken down into iterator-specific modules. New tests are under tests/trie/iter/prefixes.rs. All the other test files are just chunks of the old tests/trie/iter.rs file.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch 2 times, most recently from 49b52de to 9d2f2c4 Compare May 12, 2025 09:47
@LukeMathWalker LukeMathWalker marked this pull request as ready for review May 12, 2025 09:49
@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from 9d2f2c4 to 41e9cd0 Compare May 12, 2025 09:50
@LukeMathWalker LukeMathWalker requested review from JoanFM and raz-mon May 12, 2025 09:50
@codecov
Copy link

codecov bot commented May 12, 2025

Codecov Report

Attention: Patch coverage is 86.20690% with 8 lines in your changes missing coverage. Please review.

Project coverage is 87.30%. Comparing base (7177e72) to head (cbcccba).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/util/arr/arr.c 66.66% 5 Missing ⚠️
src/util/arr/arr.h 90.00% 2 Missing ⚠️
src/redisearch_rs/trie_rs/src/iter/prefixes.rs 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6119      +/-   ##
==========================================
- Coverage   87.33%   87.30%   -0.04%     
==========================================
  Files         217      218       +1     
  Lines       38197    38219      +22     
  Branches     2145     2167      +22     
==========================================
+ Hits        33361    33367       +6     
- Misses       4821     4837      +16     
  Partials       15       15              
Flag Coverage Δ
flow 82.61% <80.00%> (-0.17%) ⬇️
unit 43.23% <86.20%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from 41e9cd0 to 3ccb30a Compare May 12, 2025 10:57
@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch 6 times, most recently from 782032d to eae0143 Compare May 12, 2025 11:49
let map = c_load_from_terms(terms);
c.bench_function("C", |b| {
// We are leaking memory here, since we don't free the pointer to the result array.
b.iter_with_large_drop(|| map.find_prefixes(view).unwrap())
Copy link
Collaborator Author

@LukeMathWalker LukeMathWalker May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be fixed by moving util/arr.* to a subfolder, adding a CMakeLists.txt file, build it as a standalone static library, binding it to Rust and then calling array_free here.

It feels like a lot of changes for benching code that will be deleted once we swap the impl, but open to making them if you think it's worthwhile. cc @raz-mon @JoanFM

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that our CI has been a little flaky lately, I wonder if leaving this out would contribute to making this worse.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9517ea3

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a simpler way in e5cfc7a to avoid touching as many C files.

@LukeMathWalker
Copy link
Collaborator Author

In benches, the Rust version seems to be ~2x slower than the C one:

Wiki-1K|Find prefixes/Rust
                        time:   [67.442 ns 67.909 ns 68.336 ns]
                        change: [+0.0972% +1.3121% +2.5008%] (p = 0.03 < 0.05)
                        Change within noise threshold.
Wiki-1K|Find prefixes/C time:   [30.078 ns 30.588 ns 31.237 ns]
                        change: [-0.7652% +2.4754% +5.8325%] (p = 0.15 > 0.05)
                        No change in performance detected.

Investigating 🧐

@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from 7fdc6ab to e999c77 Compare May 12, 2025 12:28
@LukeMathWalker
Copy link
Collaborator Author

The C version was only returning values, ignoring the keys.
I've modified the Rust version to match its behaviour and now benches are where we like them to be:

Wiki-1K|Find prefixes/Rust: [21.289 ns 21.407 ns 21.526 ns]
Wiki-1K|Find prefixes/C:    [32.131 ns 34.159 ns 37.129 ns]

@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from e999c77 to e4f18f2 Compare May 12, 2025 12:42
let map = c_load_from_terms(terms);
c.bench_function("C", |b| {
// We are leaking memory here, since we don't free the pointer to the result array.
b.iter_with_large_drop(|| map.find_prefixes(view).unwrap())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that our CI has been a little flaky lately, I wonder if leaving this out would contribute to making this worse.

#[test]
fn non_empty_prefixes() {
let mut trie = TrieMap::new();
trie.insert(b"apple", b"apple".to_vec());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for readability of the goal, I would maybe have a different value than the key? Something like "apple-value" or sthg like this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make it more clear to see if keyor value is extracted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no room (in general) for key/value confusion, thanks to the type definition used in prefixes_iter.
I used the same string for both key and value to improve the readability of assertions. Looking at

    assert_eq!(prefixes(&trie, b"apples"), vec![b"apple"]);

you can immediately confirm that, yes, apple is a prefix of apples.
If we change to add a suffix

    assert_eq!(prefixes(&trie, b"apples"), vec![b"apple-v"]);

it becomes a bit more confusing in my opinion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes yes I know is clear, but IMO is more straightforward to clarify with the value. But I guess there is already a pattern on other tests so it's okey

@github-actions github-actions bot added size:XL and removed size:L labels May 12, 2025
@LukeMathWalker LukeMathWalker requested a review from JoanFM May 12, 2025 14:34
@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from 9517ea3 to e5cfc7a Compare May 12, 2025 17:34
@RediSearch RediSearch deleted a comment from github-actions bot May 12, 2025
@RediSearch RediSearch deleted a comment from github-actions bot May 12, 2025
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

3 similar comments
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@LukeMathWalker LukeMathWalker force-pushed the trie-prefixes-iterator branch from 58a4161 to cbcccba Compare May 13, 2025 13:43
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Copy link
Collaborator

@raz-mon raz-mon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥
2 small questions

Comment on lines +1 to +6
# Build the `arr` module as a standalone static library
# This is a temporary requirement to allow us to benchmark the
# Rust implementation of the triemap against the original C implementation.
file(GLOB ARR_SOURCES "arr.c")
add_library(arr STATIC ${ARR_SOURCES})
target_include_directories(arr PRIVATE . ../..)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to invoke array_new_sz here and array_free down here.
Since we're building deps/triemap.c as a static lib, it will refer to the symbols in arr, but it won't include their definition. We need to build the arr module as its own static lib to get those definitions in.

@LukeMathWalker LukeMathWalker requested a review from raz-mon May 14, 2025 10:11
@LukeMathWalker LukeMathWalker added this pull request to the merge queue May 14, 2025
Merged via the queue into master with commit 8877a6e May 14, 2025
13 checks passed
@LukeMathWalker LukeMathWalker deleted the trie-prefixes-iterator branch May 14, 2025 13:14
BenGoldberger pushed a commit that referenced this pull request May 21, 2025
* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.
JoanFM pushed a commit that referenced this pull request May 27, 2025
* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.
JoanFM pushed a commit that referenced this pull request May 27, 2025
* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.
github-merge-queue bot pushed a commit that referenced this pull request May 28, 2025
* test config set doesnt effect other configs

* change config setters and getters

* handle isInverted

* fix partial indexes tests

* rename cluster_timeout

* fix py test

* refactor tests

* mll change to test

* Some cargo clippy fixes (#6122)

Clippy fixes

* Use the correct Rust profile for every task (#6128)

* Compute coverage for Rust tests in CI (#6127)

* restore macos-latest-xlarge (#6132)

* CI - update release flow - [MOD-9681] (#6131)

* change release flow to be triggered by a tag push

* TEMP call this branch 3.2.1

* dummy content

* fix branch validation

* improve error message

* revert temporary changes

* improve message

* [MOD-9694] Trie prefixes iterator (#6119)

* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.

* [MOD-9693] IntoValues trie iterator. (#6129)

IntoValues iterator

* rockylinux:8 install python3.12 packages (#6147)

rockylinux:8 install python3.12-devel

* Fix linting failure on Rust LowMemoryThinVec drop implementation (#6146)

replace `mem::replace` with `mem::take`

* [master] [8.0] Remove -Werror linker flags [MOD-9624] (#6105)

[8.0] Remove -Werror linker flags [MOD-9624] (#6104)

* remove linker flag -werror

* remove linker flag -werror - one more

(cherry picked from commit 5688fcc)

Co-authored-by: alonre24 <[email protected]>

* Coverage Report Without `readies` - Phase 2 - [MOD-6711] (#5909)

* WIP new coverage flow

* move coverage logic to task-test.yml and build.sh

* type change and rust test fixes

* comment-out run_miri input

* minor fixes and improvements

* update file paths

* fix build for coverage

* remove redundancy

* fix redis build

* fix command

* another attempt

* fix

* run against latest redis

* fix coordinator env vars

* add missing rust tests

* don't run rust tests on sanitizer (for now)

* attempt to fix coverage capture

* attempt to fix rust sanitizer

* attempt to fix the rust test instead

* replace single quotes with double quotes

* improve prints

* remove quotes

* attempt to fix unit-test paths

* debug build on coverage

* cleanups

* Revert "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit 384a2f6.

* Reapply "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit ed38b62.

* better capture

* add a tests extraction step for a unified flow in older versions

* fix step to allow no-op

* CI Improvements (#6153)

* improvements

* use job-based concurrency

* notify benchmark failure only on push

* improve job name

* test notification

* skip actual benchamrks

* Revert "skip actual benchamrks"

This reverts commit 59e8fb2.

* Revert "test notification"

This reverts commit 1661e0a.

* re-implement notification condition with input

* test

* Revert "test"

This reverts commit 80206ae.

* cleanup

* test recent changes

* change and test

* fix

* cleanup

* fixes

* Add .cache to git ignore list (#6157)

Seems clang creates a cache under this directory, so let's put it to
git ignore list.

* Remove base64 code from codebase (#6161)

remove base64 code

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* Temp disable coverage as required for CI to pass in PRs (#6166)

temp to allow PRs

* [MOD-9735] Track the number of unique keys in the trie. (#6156)

Track the number of unique keys in the trie.

* [MOD-9692] Wildcard trie iterator. (#6130)

Wildcard trie iterator

* Fix micro-benchmarking job on master branch (#6162)

Fix workspace benching

* Use the correct profile name for Rust debug builds (#6170)

* Add More Diagnostics When Active Queries Are Not Empty (#6167)

* initial commit

* Apply suggestions from code review

Co-authored-by: GuyAv46 <[email protected]>

* code review comments

* output the explain string for queries if hide user data from logs is off when dumping queries

* fix typo

* free allocated query string

---------

Co-authored-by: GuyAv46 <[email protected]>

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* mention BM25 as default scorer in README (#6165)

* Yield to redis while indexing - [MOD-9220] (#6103)

* add op-counter + config

* Run all Rust benchmarks in the workspace (#6030)

* Run all Rust benchmarks in the workspace

* Allow forcing the run for micro-benchmarks

* Fix bench run

* Update .github/workflows/flow-micro-benchmarks.yml

Co-authored-by: Tim Janus <[email protected]>

---------

Co-authored-by: Tim Janus <[email protected]>

* Fix Rust build after switching off readies (#6086)

Fix Rust linking

* [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

* Build unit tests without readies [MOD-9099] (#6082)

* purge readeis from cmake. Use new build script instead of makefile

* call script in CI

* libuv

* restore build folder

* libuv

* unit tests

* pretty build.sh

* pytest

* fixed extension build error

* Add profile flags + try pass linker flag properly (wip)

* fix build and linkage + pytest + adjust json

* small cleanup

* Add pytz dep

* bump googletest version, use same variant name as before

* remove ld libs

* Fix executable linker flags - build unit test properly.
run unit tests with old "make unit-tests" way (until this is fixed via ./build.sh)

* fix rust build via build.sh

* fix san build

* Set coverage flags and use the same bin dir for sanitizer (build it for debug)

* update benchmark image for regression test

* remove leftover

* Build hiredis static

* fix json env flag in CI

* CR changes

* Restore deleted files until unit tests are done as well, use boolean params

* restore vecsim version

* fix profile and fix build error

* fix for profile

* try fix mac build

* fix unit tests for arm

* Define boost dir

* remove the policies

* try fix the binroot for unit-tests

* change dir name for arm

* remove policy from hash as well

* use clang in mac

* try to set hardcoded clang

* try to mimic readies in macos includes

* try set CMAKE_OSX_DEPLOYMENT_TARGET

* whitespace formatting

* Set CC to clang in apple

* try to export llvm

* try set compiler in build script

* use bin in path

* try EXPORT properly with homebrew

* remove setting bad path to clang

* set clang path

* update to llvm@18

* update c++ path

* set compiler with LLVM env var

* fix?

* set proper link flags for mac

* remove bsymbolic from hiredis

* revert hiredis in non macos to how it was

* clean stuff

* cleanups

* Fix the extract debug symbols command so it will work as before (required for packing properly)

* update deps

* fix for alpine

* Refactor unit-tests script to not using readies WIP

* revert vecsim accidental change

* Fix script so it will work for sanitizer as well, address CR

---------

Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>

* Wrongly included the text of GPLv3 instead of AGPLv3 (#6089)

* README.md - added no standalone released note (#6074)

* Update README.md

* Update README.md

* Update README.md

* small change to opcounter

* debug command for yield counter + test

* add config test

* Update SECURITY.md (#6070)

* Update SECURITY.md

* Update SECURITY.md

* Enforce license headers for Rust files (#6090)

* A small binary to enforce license headers in all Rust files

* Enforce license headers in CI

* MOD-6151: Build without readies - simplify packing (#5908)

* fix

* change ramp version

* fix macos

* GHA3

* fix macos

* fix maxos

* fix

* fix

* fix

* new

* purge readies

* double

* typo

* remove debug

* shapshot

* gp

* go conflict

* darwin to macos

* Account for get-platform change, remove redundant mkdir, remove not used/used once variables

* remove unused DEP_NAMES

* remove unused function

* remove un condition

* improve pack_ramp

* remove unused DEPS

* macos

* remove xtx

* replace eprint

* remove runn

* replace realapth

* Revert "remove xtx"

This reverts commit 6efb895.

* try remove xtx

* remove NOP

* remove NUMVER

* without tmp

* delete

* remove eval

* remove release

* Assume SNAPSHOT=1

* remove SEMVER

* fin

* remove sbin/getver

* Don't add unnecessary \n after the license header (#6095)

Otherwise, `cargo fmt` fails on them.

* [MOD-9547] Core trie iterators (#6016)

* Basic iterators

* Typo

* Clean up API

* Add tests for iterators

* More comments

* Fix warning for miri

* Verify that all prefixed iterators agree with each other and match expectations

* Test both lending and non-lending traversals

* Clarify comment

* Test the empty key case

* Fix where bounds on traversal_filter

* Add missing license headers

* SSPLv1.txt - removed irrelevant text (#6097)

* MOD-9612: Fix flaky test and change early timeout error message (#6100)

* Fix flaky test AND change early timeout error message

* Fix TimeLimit initialization

* Add comment

* remove deps changes

* remove deps changes

* fix a possibly new flaky test

* temp fix for config

* changes to use the config_cmd func

* try to fix issue test

* use cluster conn in test

* handle num of yield with cluster

* dont test with cluster

* pr changes

* move whitespace

* add tag and geoshape idx

* pr changes

* changes to yield only while server is loading

* and check if module function exist

* remove white space

* add wait_for_index in test

* pr change rename config

* change help text

* add isLoading argument

* check globally if loading with g_isLoading

* pr change

---------

Co-authored-by: Luca Palmieri <[email protected]>
Co-authored-by: Tim Janus <[email protected]>
Co-authored-by: lerman25 <[email protected]>
Co-authored-by: alonre24 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: Lior Kogan <[email protected]>
Co-authored-by: Zeeshan Ali Khan <[email protected]>
Co-authored-by: Raz Monsonego <[email protected]>

* change config setters and getters

* rename cluster_timeout

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* pr changes

* remove unwanted changes

* dont change 'search-conn-per-shard' to max value, because it causes the test to be flaky

* change 'search-conn-per-shard' maxvalue in test

* change 'search-conn-per-shard' maxvalue in test

---------

Co-authored-by: Zeeshan Ali Khan <[email protected]>
Co-authored-by: Luca Palmieri <[email protected]>
Co-authored-by: meiravgri <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: nafraf <[email protected]>
Co-authored-by: redisearch-backport-pull-request[bot] <182669528+redisearch-backport-pull-request[bot]@users.noreply.github.com>
Co-authored-by: alonre24 <[email protected]>
Co-authored-by: lerman25 <[email protected]>
Co-authored-by: kei-nan <[email protected]>
Co-authored-by: Joan Fontanals <[email protected]>
Co-authored-by: Tim Janus <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: Lior Kogan <[email protected]>
Co-authored-by: Raz Monsonego <[email protected]>
BenGoldberger added a commit that referenced this pull request May 28, 2025
* test config set doesnt effect other configs

* change config setters and getters

* handle isInverted

* fix partial indexes tests

* rename cluster_timeout

* fix py test

* refactor tests

* mll change to test

* Some cargo clippy fixes (#6122)

Clippy fixes

* Use the correct Rust profile for every task (#6128)

* Compute coverage for Rust tests in CI (#6127)

* restore macos-latest-xlarge (#6132)

* CI - update release flow - [MOD-9681] (#6131)

* change release flow to be triggered by a tag push

* TEMP call this branch 3.2.1

* dummy content

* fix branch validation

* improve error message

* revert temporary changes

* improve message

* [MOD-9694] Trie prefixes iterator (#6119)

* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.

* [MOD-9693] IntoValues trie iterator. (#6129)

IntoValues iterator

* rockylinux:8 install python3.12 packages (#6147)

rockylinux:8 install python3.12-devel

* Fix linting failure on Rust LowMemoryThinVec drop implementation (#6146)

replace `mem::replace` with `mem::take`

* [master] [8.0] Remove -Werror linker flags [MOD-9624] (#6105)

[8.0] Remove -Werror linker flags [MOD-9624] (#6104)

* remove linker flag -werror

* remove linker flag -werror - one more

(cherry picked from commit 5688fcc)

Co-authored-by: alonre24 <[email protected]>

* Coverage Report Without `readies` - Phase 2 - [MOD-6711] (#5909)

* WIP new coverage flow

* move coverage logic to task-test.yml and build.sh

* type change and rust test fixes

* comment-out run_miri input

* minor fixes and improvements

* update file paths

* fix build for coverage

* remove redundancy

* fix redis build

* fix command

* another attempt

* fix

* run against latest redis

* fix coordinator env vars

* add missing rust tests

* don't run rust tests on sanitizer (for now)

* attempt to fix coverage capture

* attempt to fix rust sanitizer

* attempt to fix the rust test instead

* replace single quotes with double quotes

* improve prints

* remove quotes

* attempt to fix unit-test paths

* debug build on coverage

* cleanups

* Revert "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit 384a2f6.

* Reapply "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit ed38b62.

* better capture

* add a tests extraction step for a unified flow in older versions

* fix step to allow no-op

* CI Improvements (#6153)

* improvements

* use job-based concurrency

* notify benchmark failure only on push

* improve job name

* test notification

* skip actual benchamrks

* Revert "skip actual benchamrks"

This reverts commit 59e8fb2.

* Revert "test notification"

This reverts commit 1661e0a.

* re-implement notification condition with input

* test

* Revert "test"

This reverts commit 80206ae.

* cleanup

* test recent changes

* change and test

* fix

* cleanup

* fixes

* Add .cache to git ignore list (#6157)

Seems clang creates a cache under this directory, so let's put it to
git ignore list.

* Remove base64 code from codebase (#6161)

remove base64 code

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* Temp disable coverage as required for CI to pass in PRs (#6166)

temp to allow PRs

* [MOD-9735] Track the number of unique keys in the trie. (#6156)

Track the number of unique keys in the trie.

* [MOD-9692] Wildcard trie iterator. (#6130)

Wildcard trie iterator

* Fix micro-benchmarking job on master branch (#6162)

Fix workspace benching

* Use the correct profile name for Rust debug builds (#6170)

* Add More Diagnostics When Active Queries Are Not Empty (#6167)

* initial commit

* Apply suggestions from code review

Co-authored-by: GuyAv46 <[email protected]>

* code review comments

* output the explain string for queries if hide user data from logs is off when dumping queries

* fix typo

* free allocated query string

---------

Co-authored-by: GuyAv46 <[email protected]>

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* mention BM25 as default scorer in README (#6165)

* Yield to redis while indexing - [MOD-9220] (#6103)

* add op-counter + config

* Run all Rust benchmarks in the workspace (#6030)

* Run all Rust benchmarks in the workspace

* Allow forcing the run for micro-benchmarks

* Fix bench run

* Update .github/workflows/flow-micro-benchmarks.yml

Co-authored-by: Tim Janus <[email protected]>

---------

Co-authored-by: Tim Janus <[email protected]>

* Fix Rust build after switching off readies (#6086)

Fix Rust linking

* [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

* Build unit tests without readies [MOD-9099] (#6082)

* purge readeis from cmake. Use new build script instead of makefile

* call script in CI

* libuv

* restore build folder

* libuv

* unit tests

* pretty build.sh

* pytest

* fixed extension build error

* Add profile flags + try pass linker flag properly (wip)

* fix build and linkage + pytest + adjust json

* small cleanup

* Add pytz dep

* bump googletest version, use same variant name as before

* remove ld libs

* Fix executable linker flags - build unit test properly.
run unit tests with old "make unit-tests" way (until this is fixed via ./build.sh)

* fix rust build via build.sh

* fix san build

* Set coverage flags and use the same bin dir for sanitizer (build it for debug)

* update benchmark image for regression test

* remove leftover

* Build hiredis static

* fix json env flag in CI

* CR changes

* Restore deleted files until unit tests are done as well, use boolean params

* restore vecsim version

* fix profile and fix build error

* fix for profile

* try fix mac build

* fix unit tests for arm

* Define boost dir

* remove the policies

* try fix the binroot for unit-tests

* change dir name for arm

* remove policy from hash as well

* use clang in mac

* try to set hardcoded clang

* try to mimic readies in macos includes

* try set CMAKE_OSX_DEPLOYMENT_TARGET

* whitespace formatting

* Set CC to clang in apple

* try to export llvm

* try set compiler in build script

* use bin in path

* try EXPORT properly with homebrew

* remove setting bad path to clang

* set clang path

* update to llvm@18

* update c++ path

* set compiler with LLVM env var

* fix?

* set proper link flags for mac

* remove bsymbolic from hiredis

* revert hiredis in non macos to how it was

* clean stuff

* cleanups

* Fix the extract debug symbols command so it will work as before (required for packing properly)

* update deps

* fix for alpine

* Refactor unit-tests script to not using readies WIP

* revert vecsim accidental change

* Fix script so it will work for sanitizer as well, address CR

---------

Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>

* Wrongly included the text of GPLv3 instead of AGPLv3 (#6089)

* README.md - added no standalone released note (#6074)

* Update README.md

* Update README.md

* Update README.md

* small change to opcounter

* debug command for yield counter + test

* add config test

* Update SECURITY.md (#6070)

* Update SECURITY.md

* Update SECURITY.md

* Enforce license headers for Rust files (#6090)

* A small binary to enforce license headers in all Rust files

* Enforce license headers in CI

* MOD-6151: Build without readies - simplify packing (#5908)

* fix

* change ramp version

* fix macos

* GHA3

* fix macos

* fix maxos

* fix

* fix

* fix

* new

* purge readies

* double

* typo

* remove debug

* shapshot

* gp

* go conflict

* darwin to macos

* Account for get-platform change, remove redundant mkdir, remove not used/used once variables

* remove unused DEP_NAMES

* remove unused function

* remove un condition

* improve pack_ramp

* remove unused DEPS

* macos

* remove xtx

* replace eprint

* remove runn

* replace realapth

* Revert "remove xtx"

This reverts commit 6efb895.

* try remove xtx

* remove NOP

* remove NUMVER

* without tmp

* delete

* remove eval

* remove release

* Assume SNAPSHOT=1

* remove SEMVER

* fin

* remove sbin/getver

* Don't add unnecessary \n after the license header (#6095)

Otherwise, `cargo fmt` fails on them.

* [MOD-9547] Core trie iterators (#6016)

* Basic iterators

* Typo

* Clean up API

* Add tests for iterators

* More comments

* Fix warning for miri

* Verify that all prefixed iterators agree with each other and match expectations

* Test both lending and non-lending traversals

* Clarify comment

* Test the empty key case

* Fix where bounds on traversal_filter

* Add missing license headers

* SSPLv1.txt - removed irrelevant text (#6097)

* MOD-9612: Fix flaky test and change early timeout error message (#6100)

* Fix flaky test AND change early timeout error message

* Fix TimeLimit initialization

* Add comment

* remove deps changes

* remove deps changes

* fix a possibly new flaky test

* temp fix for config

* changes to use the config_cmd func

* try to fix issue test

* use cluster conn in test

* handle num of yield with cluster

* dont test with cluster

* pr changes

* move whitespace

* add tag and geoshape idx

* pr changes

* changes to yield only while server is loading

* and check if module function exist

* remove white space

* add wait_for_index in test

* pr change rename config

* change help text

* add isLoading argument

* check globally if loading with g_isLoading

* pr change

---------

Co-authored-by: Luca Palmieri <[email protected]>
Co-authored-by: Tim Janus <[email protected]>
Co-authored-by: lerman25 <[email protected]>
Co-authored-by: alonre24 <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: Lior Kogan <[email protected]>
Co-authored-by: Zeeshan Ali Khan <[email protected]>
Co-authored-by: Raz Monsonego <[email protected]>

* change config setters and getters

* rename cluster_timeout

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* pr changes

* remove unwanted changes

* dont change 'search-conn-per-shard' to max value, because it causes the test to be flaky

* change 'search-conn-per-shard' maxvalue in test

* change 'search-conn-per-shard' maxvalue in test

---------

Co-authored-by: Zeeshan Ali Khan <[email protected]>
Co-authored-by: Luca Palmieri <[email protected]>
Co-authored-by: meiravgri <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: nafraf <[email protected]>
Co-authored-by: redisearch-backport-pull-request[bot] <182669528+redisearch-backport-pull-request[bot]@users.noreply.github.com>
Co-authored-by: alonre24 <[email protected]>
Co-authored-by: lerman25 <[email protected]>
Co-authored-by: kei-nan <[email protected]>
Co-authored-by: Joan Fontanals <[email protected]>
Co-authored-by: Tim Janus <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: Lior Kogan <[email protected]>
Co-authored-by: Raz Monsonego <[email protected]>
(cherry picked from commit fc03b3e)
github-merge-queue bot pushed a commit that referenced this pull request May 29, 2025
change config setters and getters - [MOD-9673] (#6151)

* test config set doesnt effect other configs

* change config setters and getters

* handle isInverted

* fix partial indexes tests

* rename cluster_timeout

* fix py test

* refactor tests

* mll change to test

* Some cargo clippy fixes (#6122)

Clippy fixes

* Use the correct Rust profile for every task (#6128)

* Compute coverage for Rust tests in CI (#6127)

* restore macos-latest-xlarge (#6132)

* CI - update release flow - [MOD-9681] (#6131)

* change release flow to be triggered by a tag push

* TEMP call this branch 3.2.1

* dummy content

* fix branch validation

* improve error message

* revert temporary changes

* improve message

* [MOD-9694] Trie prefixes iterator (#6119)

* Prefixes iterator

* Align with C: do not track keys in the prefixes iterator

* Compile arr.h as a standalone static library

* Fix memory issue in bench

* Add license header

* Re-add tests for values iterator

* Add another prefix benchmark using the full Gutenberg dataset.

* [MOD-9693] IntoValues trie iterator. (#6129)

IntoValues iterator

* rockylinux:8 install python3.12 packages (#6147)

rockylinux:8 install python3.12-devel

* Fix linting failure on Rust LowMemoryThinVec drop implementation (#6146)

replace `mem::replace` with `mem::take`

* [master] [8.0] Remove -Werror linker flags [MOD-9624] (#6105)

[8.0] Remove -Werror linker flags [MOD-9624] (#6104)

* remove linker flag -werror

* remove linker flag -werror - one more

(cherry picked from commit 5688fcc)



* Coverage Report Without `readies` - Phase 2 - [MOD-6711] (#5909)

* WIP new coverage flow

* move coverage logic to task-test.yml and build.sh

* type change and rust test fixes

* comment-out run_miri input

* minor fixes and improvements

* update file paths

* fix build for coverage

* remove redundancy

* fix redis build

* fix command

* another attempt

* fix

* run against latest redis

* fix coordinator env vars

* add missing rust tests

* don't run rust tests on sanitizer (for now)

* attempt to fix coverage capture

* attempt to fix rust sanitizer

* attempt to fix the rust test instead

* replace single quotes with double quotes

* improve prints

* remove quotes

* attempt to fix unit-test paths

* debug build on coverage

* cleanups

* Revert "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit 384a2f6.

* Reapply "MOD-8391: Report active threads-indexes upon crash (#5403)"

This reverts commit ed38b62.

* better capture

* add a tests extraction step for a unified flow in older versions

* fix step to allow no-op

* CI Improvements (#6153)

* improvements

* use job-based concurrency

* notify benchmark failure only on push

* improve job name

* test notification

* skip actual benchamrks

* Revert "skip actual benchamrks"

This reverts commit 59e8fb2.

* Revert "test notification"

This reverts commit 1661e0a.

* re-implement notification condition with input

* test

* Revert "test"

This reverts commit 80206ae.

* cleanup

* test recent changes

* change and test

* fix

* cleanup

* fixes

* Add .cache to git ignore list (#6157)

Seems clang creates a cache under this directory, so let's put it to
git ignore list.

* Remove base64 code from codebase (#6161)

remove base64 code

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* Temp disable coverage as required for CI to pass in PRs (#6166)

temp to allow PRs

* [MOD-9735] Track the number of unique keys in the trie. (#6156)

Track the number of unique keys in the trie.

* [MOD-9692] Wildcard trie iterator. (#6130)

Wildcard trie iterator

* Fix micro-benchmarking job on master branch (#6162)

Fix workspace benching

* Use the correct profile name for Rust debug builds (#6170)

* Add More Diagnostics When Active Queries Are Not Empty (#6167)

* initial commit

* Apply suggestions from code review



* code review comments

* output the explain string for queries if hide user data from logs is off when dumping queries

* fix typo

* free allocated query string

---------



* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* mention BM25 as default scorer in README (#6165)

* Yield to redis while indexing - [MOD-9220] (#6103)

* add op-counter + config

* Run all Rust benchmarks in the workspace (#6030)

* Run all Rust benchmarks in the workspace

* Allow forcing the run for micro-benchmarks

* Fix bench run

* Update .github/workflows/flow-micro-benchmarks.yml



---------



* Fix Rust build after switching off readies (#6086)

Fix Rust linking

* [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

* Build unit tests without readies [MOD-9099] (#6082)

* purge readeis from cmake. Use new build script instead of makefile

* call script in CI

* libuv

* restore build folder

* libuv

* unit tests

* pretty build.sh

* pytest

* fixed extension build error

* Add profile flags + try pass linker flag properly (wip)

* fix build and linkage + pytest + adjust json

* small cleanup

* Add pytz dep

* bump googletest version, use same variant name as before

* remove ld libs

* Fix executable linker flags - build unit test properly.
run unit tests with old "make unit-tests" way (until this is fixed via ./build.sh)

* fix rust build via build.sh

* fix san build

* Set coverage flags and use the same bin dir for sanitizer (build it for debug)

* update benchmark image for regression test

* remove leftover

* Build hiredis static

* fix json env flag in CI

* CR changes

* Restore deleted files until unit tests are done as well, use boolean params

* restore vecsim version

* fix profile and fix build error

* fix for profile

* try fix mac build

* fix unit tests for arm

* Define boost dir

* remove the policies

* try fix the binroot for unit-tests

* change dir name for arm

* remove policy from hash as well

* use clang in mac

* try to set hardcoded clang

* try to mimic readies in macos includes

* try set CMAKE_OSX_DEPLOYMENT_TARGET

* whitespace formatting

* Set CC to clang in apple

* try to export llvm

* try set compiler in build script

* use bin in path

* try EXPORT properly with homebrew

* remove setting bad path to clang

* set clang path

* update to llvm@18

* update c++ path

* set compiler with LLVM env var

* fix?

* set proper link flags for mac

* remove bsymbolic from hiredis

* revert hiredis in non macos to how it was

* clean stuff

* cleanups

* Fix the extract debug symbols command so it will work as before (required for packing properly)

* update deps

* fix for alpine

* Refactor unit-tests script to not using readies WIP

* revert vecsim accidental change

* Fix script so it will work for sanitizer as well, address CR

---------




* Wrongly included the text of GPLv3 instead of AGPLv3 (#6089)

* README.md - added no standalone released note (#6074)

* Update README.md

* Update README.md

* Update README.md

* small change to opcounter

* debug command for yield counter + test

* add config test

* Update SECURITY.md (#6070)

* Update SECURITY.md

* Update SECURITY.md

* Enforce license headers for Rust files (#6090)

* A small binary to enforce license headers in all Rust files

* Enforce license headers in CI

* MOD-6151: Build without readies - simplify packing (#5908)

* fix

* change ramp version

* fix macos

* GHA3

* fix macos

* fix maxos

* fix

* fix

* fix

* new

* purge readies

* double

* typo

* remove debug

* shapshot

* gp

* go conflict

* darwin to macos

* Account for get-platform change, remove redundant mkdir, remove not used/used once variables

* remove unused DEP_NAMES

* remove unused function

* remove un condition

* improve pack_ramp

* remove unused DEPS

* macos

* remove xtx

* replace eprint

* remove runn

* replace realapth

* Revert "remove xtx"

This reverts commit 6efb895.

* try remove xtx

* remove NOP

* remove NUMVER

* without tmp

* delete

* remove eval

* remove release

* Assume SNAPSHOT=1

* remove SEMVER

* fin

* remove sbin/getver

* Don't add unnecessary \n after the license header (#6095)

Otherwise, `cargo fmt` fails on them.

* [MOD-9547] Core trie iterators (#6016)

* Basic iterators

* Typo

* Clean up API

* Add tests for iterators

* More comments

* Fix warning for miri

* Verify that all prefixed iterators agree with each other and match expectations

* Test both lending and non-lending traversals

* Clarify comment

* Test the empty key case

* Fix where bounds on traversal_filter

* Add missing license headers

* SSPLv1.txt - removed irrelevant text (#6097)

* MOD-9612: Fix flaky test and change early timeout error message (#6100)

* Fix flaky test AND change early timeout error message

* Fix TimeLimit initialization

* Add comment

* remove deps changes

* remove deps changes

* fix a possibly new flaky test

* temp fix for config

* changes to use the config_cmd func

* try to fix issue test

* use cluster conn in test

* handle num of yield with cluster

* dont test with cluster

* pr changes

* move whitespace

* add tag and geoshape idx

* pr changes

* changes to yield only while server is loading

* and check if module function exist

* remove white space

* add wait_for_index in test

* pr change rename config

* change help text

* add isLoading argument

* check globally if loading with g_isLoading

* pr change

---------











* change config setters and getters

* rename cluster_timeout

* [MOD-9372 , MOD-9733] Stop indexing OOM - Add wait before OOM (#6114)

* Add config

* insert oom_scan field to scanner, remove check for oom in debug pause on oom

* fix comment

* create basis for function

* handle last scanned key

* change sleep function name

* Add pause before and after reset

* Add pause before and after statuses code

* Add pause before and after reset to bg scan

* wait if config >0

* adjust default sleep time

* fix last scanned key

* temp tests

* bsaic test strcuture

* styling

* Add scanner status strings

* Add first test

* Add update option for dbug scanner and more tests

* remove scanner cancleation

* Alter and Drop tests

* spellcheck

* skip cluster in tests

* Add config test for new config

* shortern tests

* styling

* remove pause on OOM from drop test

* Add tests, style

* style

* style

* Remove unused pause after OOM reset

* debug commands tests and cluster tests

* Naming, styling, formatting

* rename, change structure for simplicity

* improve test robustness

* remove unused and move to better location

* Ben comments round1

* Add 0 thresh test

* comment

* ADd skip cluster

* change config and other Alon's comments

* small tess

* remove pause after
Remove duplicates in tests

* more test compression

* fix assert

* pr changes

* remove unwanted changes

* dont change 'search-conn-per-shard' to max value, because it causes the test to be flaky

* change 'search-conn-per-shard' maxvalue in test

* change 'search-conn-per-shard' maxvalue in test

---------
















(cherry picked from commit fc03b3e)

Co-authored-by: Zeeshan Ali Khan <[email protected]>
Co-authored-by: Luca Palmieri <[email protected]>
Co-authored-by: meiravgri <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: nafraf <[email protected]>
Co-authored-by: redisearch-backport-pull-request[bot] <182669528+redisearch-backport-pull-request[bot]@users.noreply.github.com>
Co-authored-by: alonre24 <[email protected]>
Co-authored-by: lerman25 <[email protected]>
Co-authored-by: kei-nan <[email protected]>
Co-authored-by: Joan Fontanals <[email protected]>
Co-authored-by: Tim Janus <[email protected]>
Co-authored-by: DvirDukhan <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: Lior Kogan <[email protected]>
Co-authored-by: Raz Monsonego <[email protected]>
@LukeMathWalker LukeMathWalker restored the trie-prefixes-iterator branch February 6, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants