Skip to content

[2.8] [MOD-9023] Replacing freeFlag with a reference counter#5807

Merged
meiravgri merged 1 commit into2.8from
backport-5784-to-2.8
Mar 20, 2025
Merged

[2.8] [MOD-9023] Replacing freeFlag with a reference counter#5807
meiravgri merged 1 commit into2.8from
backport-5784-to-2.8

Conversation

@meiravgri
Copy link
Collaborator

backport #5784 to 2.8

@meiravgri meiravgri requested a review from GuyAv46 March 20, 2025 09:42
GuyAv46
GuyAv46 previously approved these changes Mar 20, 2025
@codecov
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.09%. Comparing base (e3553ef) to head (cc8ca0b).
Report is 24 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #5807      +/-   ##
==========================================
- Coverage   86.10%   86.09%   -0.01%     
==========================================
  Files         201      201              
  Lines       34532    34532              
==========================================
- Hits        29733    29730       -3     
- Misses       4799     4802       +3     

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

Base automatically changed from backport-5734-to-2.8 to 2.8 March 20, 2025 10:49
@meiravgri meiravgri dismissed GuyAv46’s stale review March 20, 2025 10:49

The base branch was changed.

[MOD-9023] Replacing freeFlag with a reference counter (#5736)

* add prints

* fix

* no depletion in getCursorCommand

* add info to assert

* free flag is now a ref counter to avoid potential race condition where one side is changing it twice.

The refcount is increased when a new job is pushed to the queue, and decreased when the coordinator doesn't need any replies, or when all readers have done executing the job.

introduce logging capabilities when ENABLE_ASSERT=1 :
RS_DEBUG_LOG and RS_DEBUG_LOG_FMT
to log in debug level

* cleanups

* cr

(cherry picked from commit 3420e93)
(cherry picked from commit 607a118)
@meiravgri meiravgri force-pushed the backport-5784-to-2.8 branch from de9b735 to cc8ca0b Compare March 20, 2025 11:01
@meiravgri meiravgri requested a review from GuyAv46 March 20, 2025 11:02
@meiravgri meiravgri enabled auto-merge March 20, 2025 11:02
@meiravgri meiravgri added this pull request to the merge queue Mar 20, 2025
Merged via the queue into 2.8 with commit d01e71d Mar 20, 2025
9 checks passed
@meiravgri meiravgri deleted the backport-5784-to-2.8 branch March 20, 2025 14:22
@meiravgri
Copy link
Collaborator Author

/backport

@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-5807-to-2.6 origin/2.6
cd .worktree/backport-5807-to-2.6
git switch --create backport-5807-to-2.6
git cherry-pick -x d01e71d458b5bc8ec5e08dd0d3e5ea6524be33e7

meiravgri added a commit that referenced this pull request Apr 26, 2025
[2.10] [MOD-9023] Replacing freeFlag with a reference counter (#5784)

[MOD-9023] Replacing freeFlag with a reference counter (#5736)

* add prints

* fix

* no depletion in getCursorCommand

* add info to assert

* free flag is now a ref counter to avoid potential race condition where one side is changing it twice.

The refcount is increased when a new job is pushed to the queue, and decreased when the coordinator doesn't need any replies, or when all readers have done executing the job.

introduce logging capabilities when ENABLE_ASSERT=1 :
RS_DEBUG_LOG and RS_DEBUG_LOG_FMT
to log in debug level

* cleanups

* cr

(cherry picked from commit 3420e93)
(cherry picked from commit 607a118)
(cherry picked from commit d01e71d)
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.

3 participants