Defining a remote cluster with both skip_unavailable and transport.ping_schedule makes the searches on a not available remote cluster behave like skip_unavailable is set to false.
4) Shut down or disconnect cluster B from cluster A
5) Run the request GET other:*/_search. You'll get org.elasticsearch.transport.RemoteTransportException: [error while communicating with remote cluster [other]].
6) Unset transport.ping_schedule:
PUT _cluster/settings
{
"persistent": {
"cluster.remote.other.transport.ping_schedule" : null
}
}
7) Retry GET other:*/_search. The search will work without exceptions
Elasticsearch Version
7.16.1+
Installed Plugins
No response
Java Version
bundled
OS Version
N/A
Problem Description
After 7.16.1 (https://github.com/elastic/elasticsearch/pull/80589).
Defining a remote cluster with both
skip_unavailable
andtransport.ping_schedule
makes the searches on a not available remote cluster behave likeskip_unavailable
is set tofalse
.Documentation doesn't warn about this: https://www.elastic.co/guide/en/elasticsearch/reference/master/remote-clusters-settings.html#remote-clusters-settings
This behavior should be at least documented.
Steps to Reproduce
1) Create a cluster A 2) Create a cluster B 3) Add to the cluster A:
4) Shut down or disconnect cluster B from cluster A 5) Run the request
GET other:*/_search
. You'll getorg.elasticsearch.transport.RemoteTransportException: [error while communicating with remote cluster [other]]
. 6) Unsettransport.ping_schedule
:7) Retry
GET other:*/_search
. The search will work without exceptionsLogs (if relevant)
No response