-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
skip_unavailable changes from true to false when remote connection fails #107125
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
I believe the problem described above should be fixed by #105792. This PR changes default behaviour for Original problem statement should be resolved now in 8.15, can you confirm please, @asmith-elastic? |
@mhl-b thanks for checking! While the mentioned PR will change the default value to true, we want to be sure that the issue described here won't change again the value to false in case the remote connection fails. If that happens and goes unnoticed, the users will now have skip_unavailable set to false in the remote clusters that failed, which is not the right default experience and why we are introducing the changes in 8.15. |
@naj-h the PR I attached reproduces the steps in the description and demonstrates that the problem no longer exists in the current codebase. Are you satisfied that we can close this issue? |
@nicktindall Thanks much for your tests! If this issue is not reproduced in main, then I think we can close this out. |
Elasticsearch Version
8.12.2
Installed Plugins
No response
Java Version
bundled
OS Version
linux
Problem Description
There is a behavior in Elasticsearch where the skip_unavailable setting for a remote cluster connection is automatically reset to false when an incorrect remote cluster address is configured. After correcting the connection details, the skip_unavailable setting does not revert to true, even if it was previously set to that value. Instead, it requires an explicit reconfiguration to set it back to true.
Steps to Reproduce
Verify the configuration, note that
skip_unavailable
istrue
.Introduce an error by setting an incorrect remote cluster address:
skip_unavailable
is automatically set tofalse
.Correct the server address back to the initial correct value.
Notice that
skip_unavailable
remainsfalse
and does not revert back totrue
.skip_unavailable
to true again:Observe how
skip_unavailable
does not change totrue
and remains set tofalse
.Set
skip_unavailable
tofalse
while it is already set to afalse
value.skip_unavailable
totrue
.skip_unavailable
is set back totrue
.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: