Skip to content

[8.0] MOD-7329: Determine if fields and documents are expired before returning them as valid results #5118

Merged
kei-nan merged 6 commits into8.0from
backport-4858-to-8.0
Dec 18, 2024
Merged

[8.0] MOD-7329: Determine if fields and documents are expired before returning them as valid results #5118
kei-nan merged 6 commits into8.0from
backport-4858-to-8.0

Conversation

@kei-nan
Copy link
Collaborator

@kei-nan kei-nan commented Oct 15, 2024

Manual backport of #4858

@kei-nan kei-nan requested a review from GuyAv46 October 15, 2024 08:27
@codecov
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 84.63303% with 67 lines in your changes missing coverage. Please review.

Project coverage is 86.62%. Comparing base (3b013a4) to head (5ffe76f).
Report is 8 commits behind head on 8.0.

Files with missing lines Patch % Lines
src/ttl_table.c 59.72% 29 Missing ⚠️
src/inverted_index.c 80.00% 8 Missing ⚠️
src/debug_commands.c 84.84% 5 Missing ⚠️
src/document_basic.c 83.87% 5 Missing ⚠️
src/hybrid_reader.c 87.09% 4 Missing ⚠️
src/spec.c 90.00% 4 Missing ⚠️
src/doc_table.c 85.71% 3 Missing ⚠️
src/indexer.c 90.62% 3 Missing ⚠️
src/geometry/query_iterator.cpp 86.66% 2 Missing ⚠️
src/numeric_index.c 81.81% 2 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5118      +/-   ##
==========================================
- Coverage   86.70%   86.62%   -0.09%     
==========================================
  Files         192      193       +1     
  Lines       34411    34676     +265     
==========================================
+ Hits        29837    30039     +202     
- Misses       4574     4637      +63     

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

GuyAv46
GuyAv46 previously approved these changes Oct 15, 2024
@kei-nan kei-nan self-assigned this Oct 27, 2024
@kei-nan kei-nan force-pushed the backport-4858-to-8.0 branch 2 times, most recently from ff2539f to 706a662 Compare December 10, 2024 15:42
@kei-nan kei-nan marked this pull request as draft December 10, 2024 15:42
@kei-nan kei-nan marked this pull request as ready for review December 10, 2024 15:42
…ing them as valid results (#4858)

* * initial commit

* * fix missing case in test_expire.py

* * fix coord compilation

* * fix doc info test

* * try and fix some of the tests

* * release iterator

* * do not set expiration time in the context of the coordinator since it doesn't have an index spec

* * support c++ tests that do not provide spec for iterators

* * no point in passing timestamp in coordinator flow

* * redis 7.4 version in ci is actually 7.3, for codecov we need our tests to run

* * reduce max memory from + 200000 to 150000

* * fix test

* * cleanup code

* * Code Review: Round #1

* * Add geoshape tests, only pass index instead of pointer to filter ctx

* * Add vector test

* * Code Review - Round #2

* * try and fix tests

* * Code Review - Round #3

* * Fix Sanitizer Build

* * Code Review - Round #4

* * Minor change in debug command SET_MONITOR_EXPIRATION

* * Code Review - Round #5

* * fix tests

* * Code Review - Round #6

* * fix crash

* * fix test

* * improve field mask translation time

* fix compilation

* fix compilation error

* handle field mask of 64 bit

* * Code Review - Round #7

* * fix opening of key edge cases

* * free fieldIdToIndex array

* Code Review - Round #9

* * fix rebase conflicts
* support wild card reader filtering

* * mac os: fallback to CLOCK_REALTIME if CLOCK_REALTIME_COARSE is not defined

(cherry picked from commit 4a67a87)
* * check mask edge case

* * Code Review - Round #1

(cherry picked from commit 2c037bc)
MOD-7976: Fix HFE Regression (#5318)

* * use new expiration API to avoid regression issues with HFE support when expiration isn't being used

* * update sdk to get new hash field expiration API

* * set monitorFieldExpiration default based on the existence of `RedisModule_HashFieldMinExpire`

* * skip field expiration tests if below 8.0 API

* * Code Review Comments
* Prevent turning on the monitorFieldExpiration if the API does not exist

* * move to run against redis 8.0

(cherry picked from commit bebdeb7)
@kei-nan kei-nan force-pushed the backport-4858-to-8.0 branch from 1198cc0 to 5ffe76f Compare December 11, 2024 10:00
@kei-nan kei-nan requested review from nafraf and raz-mon and removed request for raz-mon December 11, 2024 10:34
@kei-nan kei-nan added this pull request to the merge queue Dec 18, 2024
Merged via the queue into 8.0 with commit 11448be Dec 18, 2024
@kei-nan kei-nan deleted the backport-4858-to-8.0 branch December 18, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants