Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Recyclers to Common Library #9028

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

nknize
Copy link
Collaborator

@nknize nknize commented Aug 1, 2023

This commit refactors the common recylers logic from the :server module to the :libs:opensearch-core library to make the base functionality available to concrete implementations across the code base. This is done to support cloud native or serverless implementations.

relates #5910
relates #8110

This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.

Signed-off-by: Nicholas Walter Knize <[email protected]>
@nknize nknize added enhancement Enhancement or improvement to existing feature or request skip-changelog v2.10.0 labels Aug 1, 2023
@nknize nknize changed the title [Refactor] Recylers to Common Library [Refactor] Recyclers to Common Library Aug 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #9028 (bca8611) into main (f2ca769) will increase coverage by 0.01%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #9028      +/-   ##
============================================
+ Coverage     71.03%   71.05%   +0.01%     
- Complexity    57272    57291      +19     
============================================
  Files          4765     4765              
  Lines        270289   270289              
  Branches      39533    39533              
============================================
+ Hits         192009   192059      +50     
+ Misses        62129    62106      -23     
+ Partials      16151    16124      -27     
Files Changed Coverage Δ
...g/opensearch/common/recycler/AbstractRecycler.java 100.00% <ø> (ø)
.../opensearch/common/recycler/AbstractRecyclerC.java 100.00% <ø> (ø)
...earch/common/recycler/ConcurrentDequeRecycler.java 100.00% <ø> (ø)
.../org/opensearch/common/recycler/DequeRecycler.java 100.00% <ø> (ø)
...org/opensearch/common/recycler/FilterRecycler.java 100.00% <ø> (ø)
...a/org/opensearch/common/recycler/NoneRecycler.java 100.00% <ø> (ø)
...java/org/opensearch/common/recycler/Recyclers.java 91.42% <ø> (ø)
.../common/util/concurrent/ConcurrentCollections.java 90.90% <ø> (ø)
.../common/util/concurrent/ConcurrentHashMapLong.java 40.74% <ø> (ø)

... and 434 files with indirect coverage changes

@nknize nknize merged commit 22893b1 into opensearch-project:main Aug 1, 2023
41 checks passed
@nknize nknize deleted the recyclersAndConcurrent branch August 2, 2023 04:49
@nknize nknize added the backport 2.x Backport to 2.x branch label Aug 2, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 2, 2023
This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.

Signed-off-by: Nicholas Walter Knize <[email protected]>
(cherry picked from commit 22893b1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta pushed a commit that referenced this pull request Aug 2, 2023
This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.


(cherry picked from commit 22893b1)

Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kaushalmahi12 pushed a commit to kaushalmahi12/OpenSearch that referenced this pull request Sep 12, 2023
This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.

Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: Kaushal Kumar <[email protected]>
brusic pushed a commit to brusic/OpenSearch that referenced this pull request Sep 25, 2023
This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.

Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: Ivan Brusic <[email protected]>
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
This commit refactors the common recylers logic from the server module
to the core library to make the base functionality available to concrete
implementations across the codebase. This is done to support cloud
native or serverless implementations. Until JPM is enabled, the classes
remain marked for internal use only. Determining which classes will be
exported will dictate if/when these doc labels are switched to API.

Signed-off-by: Nicholas Walter Knize <[email protected]>
Signed-off-by: Shivansh Arora <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch enhancement Enhancement or improvement to existing feature or request skip-changelog v2.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants