Skip to content

Improve "Raw doc id" encoding - [MOD-8255]#5364

Merged
GuyAv46 merged 5 commits intomasterfrom
guyav-add_raw_doc_id_tests
Dec 18, 2024
Merged

Improve "Raw doc id" encoding - [MOD-8255]#5364
GuyAv46 merged 5 commits intomasterfrom
guyav-add_raw_doc_id_tests

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Dec 17, 2024

A follow-up of #5350

This PR fixes the raw doc ID seeker logic, by removing a previous workaround required by the bug fixed in #5350.
It also enables the raw doc id configuration in the coverage flow, for a more accurate coverage report.

Main objects this PR modified

  1. Raw doc ID seeker
  2. Added unit test for Raw doc ID encoder, decoder, and seeker

Mark if applicable

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

@codecov
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.63%. Comparing base (29d0b78) to head (82c7b17).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5364      +/-   ##
==========================================
+ Coverage   86.50%   86.63%   +0.12%     
==========================================
  Files         195      195              
  Lines       34818    34809       -9     
==========================================
+ Hits        30120    30157      +37     
+ Misses       4698     4652      -46     

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

@GuyAv46 GuyAv46 enabled auto-merge December 18, 2024 12:35
@GuyAv46 GuyAv46 requested a review from alonre24 December 18, 2024 12:45
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 18, 2024
@GuyAv46 GuyAv46 changed the title Improve "Raw doc id" encoding Improve "Raw doc id" encoding - [MOD-8255] Dec 18, 2024
Merged via the queue into master with commit 565633a Dec 18, 2024
@GuyAv46 GuyAv46 deleted the guyav-add_raw_doc_id_tests branch December 18, 2024 16:49
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 18, 2024
* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.8:

@redisearch-backport-pull-request
Copy link
Contributor

Backport failed for 2.6, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.6
git worktree add -d .worktree/backport-5364-to-2.6 origin/2.6
cd .worktree/backport-5364-to-2.6
git switch --create backport-5364-to-2.6
git cherry-pick -x 565633a1ea57cf5284f3b67cb84cde61a608f8bd

@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 18, 2024
* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 18, 2024
* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

GuyAv46 added a commit that referenced this pull request Dec 18, 2024
* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)
github-merge-queue bot pushed a commit that referenced this pull request Dec 18, 2024
Improve "Raw doc id" encoding (#5364)

* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
* Improve "Raw doc id" encoding (#5364)

* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)

* fix API for old version

---------

Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
* Improve "Raw doc id" encoding (#5364)

* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)

* fix API for old version

---------

Co-authored-by: GuyAv46 <[email protected]>
Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
* Improve "Raw doc id" encoding (#5364)

* steal seeker fix from #5350

* try running RAW_DOCID_ENCODING with coverage

* [TEMP] disable skip on QUICK=1

* Revert temporary changes

* add a unit test

(cherry picked from commit 565633a)

* fix API for 2.6 version
GuyAv46 added a commit that referenced this pull request Feb 4, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 5, 2025
* Revert "[2.10] MOD-8561: Fix Inverted Index SeekTo Edge Case (#5536)"

This reverts commit f9923b7.

* Revert "[2.10] Improve SkipToBlock logic - [MOD-8255] (#5370)"

This reverts commit 56b16ea.

* partial revert of #5364

* address CR, added tests

* test improvement

* Improve test and fix bug (remove revert)

* remove temporary change
GuyAv46 added a commit that referenced this pull request Feb 5, 2025
* Revert "[2.10] MOD-8561: Fix Inverted Index SeekTo Edge Case (#5536)"

This reverts commit f9923b7.

* Revert "[2.10] Improve SkipToBlock logic - [MOD-8255] (#5370)"

This reverts commit 56b16ea.

* partial revert of #5364

* address CR, added tests

* test improvement

* Improve test and fix bug (remove revert)

* remove temporary change

(cherry picked from commit 8d3282d)
GuyAv46 added a commit that referenced this pull request Feb 5, 2025
* Revert "[2.10] MOD-8561: Fix Inverted Index SeekTo Edge Case (#5536)"

This reverts commit f9923b7.

* Revert "[2.10] Improve SkipToBlock logic - [MOD-8255] (#5370)"

This reverts commit 56b16ea.

* partial revert of #5364

* address CR, added tests

* test improvement

* Improve test and fix bug (remove revert)

* remove temporary change

(cherry picked from commit 8d3282d)
github-merge-queue bot pushed a commit that referenced this pull request Feb 5, 2025
* Revert inverted index iterator changes (#5596)

* Revert "[2.10] MOD-8561: Fix Inverted Index SeekTo Edge Case (#5536)"

This reverts commit f9923b7.

* Revert "[2.10] Improve SkipToBlock logic - [MOD-8255] (#5370)"

This reverts commit 56b16ea.

* partial revert of #5364

* address CR, added tests

* test improvement

* Improve test and fix bug (remove revert)

* remove temporary change

(cherry picked from commit 8d3282d)

* fix test for 2.6
github-merge-queue bot pushed a commit that referenced this pull request Feb 5, 2025
Revert inverted index iterator changes (#5596)

* Revert "[2.10] MOD-8561: Fix Inverted Index SeekTo Edge Case (#5536)"

This reverts commit f9923b7.

* Revert "[2.10] Improve SkipToBlock logic - [MOD-8255] (#5370)"

This reverts commit 56b16ea.

* partial revert of #5364

* address CR, added tests

* test improvement

* Improve test and fix bug (remove revert)

* remove temporary change

(cherry picked from commit 8d3282d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants