-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make Remote Publication a dynamic setting #15937
Conversation
❌ Gradle check result for 68c358c: 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? |
❌ Gradle check result for a15a1b6: 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? |
❌ Gradle check result for c2b26a2: 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? |
❌ Gradle check result for cb46759: 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? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15937 +/- ##
============================================
- Coverage 72.00% 71.95% -0.06%
+ Complexity 64796 64794 -2
============================================
Files 5307 5307
Lines 302540 302553 +13
Branches 43708 43705 -3
============================================
- Hits 217853 217702 -151
- Misses 66801 67009 +208
+ Partials 17886 17842 -44 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/gateway/remote/RemoteClusterStateService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Signed-off-by: Sooraj Sinha <soosinha@amazon.com>
Signed-off-by: Sooraj Sinha <soosinha@amazon.com>
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.
Sorry what is the behaviour on disabling a remote publication? Will it perform a full cluster state publication over transport
@Bukhtawar The cluster manager node always tries to send the diff cluster state over transport layer. If the target node does not have previous version then the full state is sent. The same is applicable when remote publication is disabled |
Understand, my point is if we switch from remote to local transport publication, should we reconcile the state first in case remote publication had some discrepancy applying the state and probably also the reason why the remote publication also needs to be disabled in the first place |
@Bukhtawar If remote publication has some issue, then the checksum validation should prevent such publication. |
Created an issue to track publication of full cluster state on disabling remote publication: #16345 |
0c3e3c0
into
opensearch-project:main
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-15937-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0c3e3c009ae85943460bcc26805c1cf57b195b91
# Push it to GitHub
git push --set-upstream origin backport/backport-15937-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
* Make Remote Publication a dynamic setting Signed-off-by: Shivansh Arora <hishiv@amazon.com> Co-authored-by: Sooraj Sinha <soosinha@amazon.com> (cherry picked from commit 0c3e3c0)
* Make Remote Publication a dynamic setting Signed-off-by: Shivansh Arora <hishiv@amazon.com> Co-authored-by: Sooraj Sinha <soosinha@amazon.com>
* Make Remote Publication a dynamic setting Signed-off-by: Shivansh Arora <hishiv@amazon.com> Co-authored-by: Sooraj Sinha <soosinha@amazon.com>
Description
Make the
cluster.remote_store.publication.enabled
a Dynamic setting. Also, made clear distinction of isPublicationEnabled methods and isPublicationConfigured methods. We should only use the isPublicationEnabled methods on active ClusterManager node, otherwise is can give inconsistent results.Related Issues
Resolves #15852
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.