Skip to content

[2.10] MOD-6058: Circular Buffer#5383

Merged
raz-mon merged 1 commit into2.10from
backport-5297-to-2.10
Dec 19, 2024
Merged

[2.10] MOD-6058: Circular Buffer#5383
raz-mon merged 1 commit into2.10from
backport-5297-to-2.10

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5297 to 2.10.

* wip

* WIP

* Add unit-tests for the Circular Buffer

* Formatting

* Add coverage to itemSize

* Add spaces

* Add coverage for ResetReader

* Address review

* Fix item_count update to be atomic

* Add multi-threaded cpp tests for add, reserve functions

* Touchup

* Format test file

* Add comments and some thread-safe modifications

* Fix indentation

* Remove new-line

* Touchup

* Fix multi-threading test

* Modify test

* Remove comment

* Add assertion for item-size and item-cap

* Modify assertion

* Add wasFull output variable to the reserve api

* Initialize wasFull to false

* Set wasFull in false case

(cherry picked from commit dae453b)
@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 98.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.78%. Comparing base (24d1610) to head (d70dbbc).
Report is 1 commits behind head on 2.10.

Files with missing lines Patch % Lines
src/util/circular_buffer.c 98.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #5383      +/-   ##
==========================================
+ Coverage   86.75%   86.78%   +0.02%     
==========================================
  Files         194      195       +1     
  Lines       34088    34168      +80     
==========================================
+ Hits        29574    29653      +79     
- Misses       4514     4515       +1     

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

@raz-mon raz-mon added this pull request to the merge queue Dec 19, 2024
Merged via the queue into 2.10 with commit 325a318 Dec 19, 2024
@raz-mon raz-mon deleted the backport-5297-to-2.10 branch December 19, 2024 16:42
raz-mon added a commit that referenced this pull request Jan 31, 2025
This reverts commit 325a318.

Revert "[2.10] Fix Numeric Tree Balance - [MOD-8081, MOD-8082] (#5199)"

This reverts commit 4645bc6.

Revert "[2.10] Performance improvement in indexBulkFields - [MOD-8093] (#5191)"

This reverts commit 5aa00b0.

Revert "[2.10] Add VecSim related metrics - [MOD-7967] (#5169)"

This reverts commit 242f314.
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.

1 participant