-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Cache serialised cluster state based on cluster state version and nod… #19307
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
Cache serialised cluster state based on cluster state version and nod… #19307
Conversation
|
❌ Gradle check result for df390ad: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Outdated
Show resolved
Hide resolved
df390ad to
c11736c
Compare
|
❌ Gradle check result for c11736c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
c11736c to
5038780
Compare
|
❌ Gradle check result for 5038780: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
5038780 to
93a3067
Compare
|
❌ Gradle check result for 93a3067: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Show resolved
Hide resolved
93a3067 to
fd364e6
Compare
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
|
❌ Gradle check result for fd364e6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Outdated
Show resolved
Hide resolved
fd364e6 to
ec2dea8
Compare
|
❌ Gradle check result for ec2dea8: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/test/java/org/opensearch/cluster/coordination/JoinHelperTests.java
Show resolved
Hide resolved
ec2dea8 to
03c3022
Compare
|
❌ Gradle check result for 03c3022: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Please take a look at the build failures.
03c3022 to
6d1446b
Compare
Flaky test org.opensearch.indices.replication.WarmIndexSegmentReplicationIT.testRestartPrimaryAndReplicaWithDocuments. The test failure isn't related to changes made in the PR. |
|
❌ Gradle check result for 6d1446b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/coordination/JoinHelper.java
Show resolved
Hide resolved
6d1446b to
d2292df
Compare
|
❌ Gradle check result for d2292df: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Failed test org.opensearch.index.IndexServiceTests.testAsyncTranslogTrimTaskOnClosedIndex. Flaky test #14407 |
|
❌ Gradle check result for d2292df: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for d2292df: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…e version and node version. Signed-off-by: Swetha Guptha <[email protected]>
d2292df to
dbf861a
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19307 +/- ##
============================================
+ Coverage 72.90% 72.97% +0.07%
- Complexity 70014 70093 +79
============================================
Files 5681 5683 +2
Lines 321457 321545 +88
Branches 46486 46504 +18
============================================
+ Hits 234347 234653 +306
+ Misses 68187 67942 -245
- Partials 18923 18950 +27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-19307-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b4583c3ad7e22feb9488a816b28fc41616e899f0
# Push it to GitHub
git push --set-upstream origin backport/backport-19307-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.xThen, create a pull request where the |
…e version and node version. (opensearch-project#19307) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
…e version and node version. (opensearch-project#19307) Signed-off-by: Swetha Guptha <[email protected]> Co-authored-by: Swetha Guptha <[email protected]>
…e version.
Description
As described in #19272, the current implementation for using the serialized cluster state from cache is incorrect when we have nodes from mixed versions joining the cluster. If cluster state version hasn't changed, Ccuster manager node will send the serialized state of node X to node Y even if X and Y are on different OpenSearch version. With this change, the caching is on both cluster state version and node version.
Related Issues
Resolves: #19272
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.