Skip to content

MOD-6058: Circular Buffer#5297

Merged
raz-mon merged 26 commits intomasterfrom
razmon-circular_buffer
Dec 19, 2024
Merged

MOD-6058: Circular Buffer#5297
raz-mon merged 26 commits intomasterfrom
razmon-circular_buffer

Conversation

@raz-mon
Copy link
Collaborator

@raz-mon raz-mon commented Dec 3, 2024

Adds a Circular Buffer to RediSearch, see the header file for more specification of the exposed API.

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@codecov
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

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

Project coverage is 87.09%. Comparing base (05d0287) to head (274baa0).
Report is 11 commits behind head on master.

Files with missing lines Patch % Lines
src/util/circular_buffer.c 98.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5297      +/-   ##
==========================================
+ Coverage   86.63%   87.09%   +0.46%     
==========================================
  Files         193      196       +3     
  Lines       34717    34882     +165     
==========================================
+ Hits        30077    30382     +305     
+ Misses       4640     4500     -140     

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

@raz-mon raz-mon requested review from kei-nan and oshadmi December 9, 2024 09:46
@raz-mon raz-mon requested review from kei-nan and oshadmi December 19, 2024 09:34
@raz-mon raz-mon requested a review from oshadmi December 19, 2024 11:55
@raz-mon raz-mon added this pull request to the merge queue Dec 19, 2024
Merged via the queue into master with commit dae453b Dec 19, 2024
@raz-mon raz-mon deleted the razmon-circular_buffer branch December 19, 2024 13:44
redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 19, 2024
* 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)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.8:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 19, 2024
* 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)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.6:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 19, 2024
* 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)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Dec 19, 2024
* 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)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
MOD-6058: Circular Buffer (#5297)

* 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)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
MOD-6058: Circular Buffer (#5297)

* 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)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
MOD-6058: Circular Buffer (#5297)

* 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)

Co-authored-by: Raz Monsonego <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 19, 2024
MOD-6058: Circular Buffer (#5297)

* 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)

Co-authored-by: Raz Monsonego <[email protected]>
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