-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[CCS] improve response when node is not allowed to open remote connections in CCS #37863
Comments
Pinging @elastic/es-search |
heya @LucaWintergerst I don't see an empty response being returned. I rather get this (tested on 6.6.0):
The reason for this is that, when connecting to remote clusters is disabled, the node behaves as if the seeds were not configured and treats That said there are a couple of ways to detect that something is going wrong:
@dimitris-athanasiou @droberts195 could you let me know if this work for you? |
@javanna While we could probably fix the ML side using your suggestions, I still think other users could be bitten by this. Would it not be possible to throw an error instead? It seems like we know we're reaching a remote cluster and we know the node is disabled from doing so, so why not error? |
@dimitris-athanasiou I explained above why we cannot do it.
|
Ah, apologies, I misread that part. |
No worries, I will take care of updating this behaviour once we move master to 8.0, for now I will close this issue. |
Reopening, we moved master to 8.0.0 and it's now possible to make this change. PR coming. |
Remote cluster resolution is currently lenient, to support local indices that may contain `:` in their name. From 8.0 on, there can no longer be indices in the cluster that contain `:` in their name, hence we can make remote cluster resolution stricter. Instead of treating any index expression containing a `:` whenever there is no corresponding matching remote cluster registered, we now throw a `NoSuchRemoteClusterException`. Closes elastic#37863
Remote cluster resolution is currently lenient, to support local indices that may contain `:` in their name. From 8.0 on, there can no longer be indices in the cluster that contain `:` in their name, hence we can make remote cluster resolution stricter. Instead of treating any index expression containing a `:` whenever there is no corresponding matching remote cluster registered, we now throw a `NoSuchRemoteClusterException`. Closes #37863
Remote cluster resolution is currently lenient, to support local indices that may contain `:` in their name. From 8.0 on, there can no longer be indices in the cluster that contain `:` in their name, hence we can make remote cluster resolution stricter. Instead of treating any index expression containing a `:` whenever there is no corresponding matching remote cluster registered, we now throw a `NoSuchRemoteClusterException`. Closes elastic#37863
If a node has
cluster.remote.connect: false
configured, that node will behave in the following way:Request:
GET remote_cluster:*/_search
Response:
{}
The node also does not log anything that would indicate that the setting is the cause of the empty response.
CCS should give additional output why the response is empty so this can be handled by the downstream applications. Otherwise this misconfiguration can be easy to miss and very hard to troubleshoot.
@dimitris-athanasiou and @droberts195 are happy to discuss and elaborate more if necessary
We caught this when we were troubleshooting why dedicated ML nodes were not working for a user
The text was updated successfully, but these errors were encountered: