Skip to content

[8.0] [MOD-9023] Replacing freeFlag with a reference counter #5762

Merged
meiravgri merged 1 commit into8.0from
backport-5736-to-8.0
Mar 13, 2025
Merged

[8.0] [MOD-9023] Replacing freeFlag with a reference counter #5762
meiravgri merged 1 commit into8.0from
backport-5736-to-8.0

Conversation

@meiravgri
Copy link
Collaborator

@meiravgri meiravgri commented Mar 13, 2025

backport #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)
@meiravgri meiravgri changed the title [MOD-9023] Replacing freeFlag with a reference counter (#5736) [8.0] [MOD-9023] Replacing freeFlag with a reference counter Mar 13, 2025
@meiravgri meiravgri requested a review from GuyAv46 March 13, 2025 15:19
@meiravgri meiravgri enabled auto-merge March 13, 2025 15:21
@codecov
Copy link

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.06%. Comparing base (5340f1a) to head (677197b).
Report is 2 commits behind head on 8.0.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5762      +/-   ##
==========================================
- Coverage   88.08%   88.06%   -0.03%     
==========================================
  Files         200      200              
  Lines       36008    36018      +10     
==========================================
- Hits        31719    31718       -1     
- Misses       4289     4300      +11     

☔ 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 13, 2025
Merged via the queue into 8.0 with commit 865ea5f Mar 13, 2025
9 checks passed
@meiravgri meiravgri deleted the backport-5736-to-8.0 branch March 13, 2025 16:49
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.

2 participants