Skip to content

[2.10] [MOD-9023] Replacing freeFlag with a reference counter#5784

Merged
meiravgri merged 1 commit into2.10from
backport-5736-to-2.10
Mar 18, 2025
Merged

[2.10] [MOD-9023] Replacing freeFlag with a reference counter#5784
meiravgri merged 1 commit into2.10from
backport-5736-to-2.10

Conversation

@meiravgri
Copy link
Collaborator

backport #5736 to 2.10

* 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)
@meiravgri meiravgri enabled auto-merge March 18, 2025 05:57
@codecov
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.62%. Comparing base (114456e) to head (8391a9f).
Report is 2 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #5784      +/-   ##
==========================================
- Coverage   86.62%   86.62%   -0.01%     
==========================================
  Files         198      198              
  Lines       34273    34273              
==========================================
- Hits        29690    29689       -1     
- Misses       4583     4584       +1     

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

@meiravgri meiravgri added this pull request to the merge queue Mar 18, 2025
Merged via the queue into 2.10 with commit 607a118 Mar 18, 2025
9 checks passed
@meiravgri meiravgri deleted the backport-5736-to-2.10 branch March 18, 2025 08:10
@meiravgri
Copy link
Collaborator Author

/backport

@redisearch-backport-pull-request
Copy link
Contributor

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

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

git fetch origin 2.8
git worktree add -d .worktree/backport-5784-to-2.8 origin/2.8
cd .worktree/backport-5784-to-2.8
git switch --create backport-5784-to-2.8
git cherry-pick -x 607a11854beeedcd9a38d557e5400d6a820c21be

meiravgri added a commit that referenced this pull request Mar 20, 2025
[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 added a commit that referenced this pull request Mar 20, 2025
[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)
github-merge-queue bot pushed a commit that referenced this pull request Mar 20, 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)
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.

2 participants