-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[Backport 2.x] Compress and cache cluster state during validate join request (#7321) #7945
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
Merged
andrross
merged 2 commits into
opensearch-project:2.x
from
andrross:backport/backport-7321-to-2.x
Jun 22, 2023
Merged
[Backport 2.x] Compress and cache cluster state during validate join request (#7321) #7945
andrross
merged 2 commits into
opensearch-project:2.x
from
andrross:backport/backport-7321-to-2.x
Jun 22, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #7945 +/- ##
============================================
- Coverage 70.64% 70.58% -0.07%
+ Complexity 56851 56780 -71
============================================
Files 4703 4704 +1
Lines 269104 269091 -13
Branches 39774 39771 -3
============================================
- Hits 190118 189932 -186
- Misses 62702 62833 +131
- Partials 16284 16326 +42
|
bcde254 to
91f9db9
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
|
@andrross Can you please rebase and iterate to green? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
91f9db9 to
c785e9f
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
c785e9f to
fb56099
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
added a commit
to andrross/OpenSearch
that referenced
this pull request
Jun 20, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <[email protected]>
6 tasks
kotwanikunal
approved these changes
Jun 20, 2023
fb56099 to
0dfe96e
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Member
Author
|
Flaky test: #7592 |
…arch-project#7321) * Compress and cache cluster state during validate join request Signed-off-by: Aman Khare <[email protected]> * Add changelog and license Signed-off-by: Aman Khare <[email protected]> * Add javadoc and correct styling Signed-off-by: Aman Khare <[email protected]> * Add new handler for sending compressed cluster state in validate join flow and refactor code Signed-off-by: Aman Khare <[email protected]> * Refactor util method Signed-off-by: Aman Khare <[email protected]> * optimize imports Signed-off-by: Aman Khare <[email protected]> * Use cluster state version based cache instead of time based cache Signed-off-by: Aman Khare <[email protected]> * style fix Signed-off-by: Aman Khare <[email protected]> * fix styling 2 Signed-off-by: Aman Khare <[email protected]> * Use concurrent hashmap instead of cache, add UT class for ClusterStateUtils Signed-off-by: Aman Khare <[email protected]> * style fix Signed-off-by: Aman Khare <[email protected]> * Use AtomicReference instead of ConcurrentHashMap Signed-off-by: Aman Khare <[email protected]> * Use method overloading to simplify the caller code Signed-off-by: Aman Khare <[email protected]> * Resolve conflicts Signed-off-by: Aman Khare <[email protected]> * Change code structure to separate the flow for JoinHelper and PublicationTransportHelper Signed-off-by: Aman Khare <[email protected]> * Remove unnecessary input.setVersion line Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Aman Khare <[email protected]> --------- Signed-off-by: Aman Khare <[email protected]> Signed-off-by: Aman Khare <[email protected]> Co-authored-by: Aman Khare <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit b17c88c)
Signed-off-by: Andrew Ross <[email protected]>
0dfe96e to
daeaa52
Compare
Contributor
Gradle Check (Jenkins) Run Completed with:
|
Contributor
Gradle Check (Jenkins) Run Completed with:
|
andrross
added a commit
to andrross/OpenSearch
that referenced
this pull request
Jun 22, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <[email protected]>
kotwanikunal
pushed a commit
that referenced
this pull request
Jun 22, 2023
This change was backported to 2.x in #7945. Signed-off-by: Andrew Ross <[email protected]>
gaiksaya
pushed a commit
to gaiksaya/OpenSearch
that referenced
this pull request
Jun 26, 2023
…request (opensearch-project#7321) (opensearch-project#7945) * Compress and cache cluster state during validate join request (opensearch-project#7321) * Compress and cache cluster state during validate join request Signed-off-by: Aman Khare <[email protected]> * Add changelog and license Signed-off-by: Aman Khare <[email protected]> * Add javadoc and correct styling Signed-off-by: Aman Khare <[email protected]> * Add new handler for sending compressed cluster state in validate join flow and refactor code Signed-off-by: Aman Khare <[email protected]> * Refactor util method Signed-off-by: Aman Khare <[email protected]> * optimize imports Signed-off-by: Aman Khare <[email protected]> * Use cluster state version based cache instead of time based cache Signed-off-by: Aman Khare <[email protected]> * style fix Signed-off-by: Aman Khare <[email protected]> * fix styling 2 Signed-off-by: Aman Khare <[email protected]> * Use concurrent hashmap instead of cache, add UT class for ClusterStateUtils Signed-off-by: Aman Khare <[email protected]> * style fix Signed-off-by: Aman Khare <[email protected]> * Use AtomicReference instead of ConcurrentHashMap Signed-off-by: Aman Khare <[email protected]> * Use method overloading to simplify the caller code Signed-off-by: Aman Khare <[email protected]> * Resolve conflicts Signed-off-by: Aman Khare <[email protected]> * Change code structure to separate the flow for JoinHelper and PublicationTransportHelper Signed-off-by: Aman Khare <[email protected]> * Remove unnecessary input.setVersion line Co-authored-by: Andrew Ross <[email protected]> Signed-off-by: Aman Khare <[email protected]> --------- Signed-off-by: Aman Khare <[email protected]> Signed-off-by: Aman Khare <[email protected]> Co-authored-by: Aman Khare <[email protected]> Co-authored-by: Andrew Ross <[email protected]> (cherry picked from commit b17c88c) * Change version guard to 2.9.0 Signed-off-by: Andrew Ross <[email protected]> --------- Signed-off-by: Andrew Ross <[email protected]> Co-authored-by: Aman Khare <[email protected]>
imRishN
pushed a commit
to imRishN/OpenSearch
that referenced
this pull request
Jun 27, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <[email protected]> Signed-off-by: Rishab Nahata <[email protected]>
sudarshan-baliga
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Jun 29, 2023
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <[email protected]>
shiv0408
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Apr 25, 2024
This change was backported to 2.x in opensearch-project#7945. Signed-off-by: Andrew Ross <[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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backports #7321 to 2.x