-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Ignore remote ES|QL execution failures when skip_unavailable=true #116365
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
Closed
Closed
Changes from 9 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
318d424
Ignore failures on skip_unavailable
smalyshev 378f71a
Cover more cases for skip
smalyshev dc8ec22
Fix existing tests by defaulting skip_un to false
smalyshev dc1e4fa
Add tests for both skip_un settings
smalyshev 6c09cb4
Add handling remote sink failures
smalyshev 2842278
Update docs/changelog/116365.yaml
smalyshev 22c8bf7
Merge branch 'main' into skip-on-fail
smalyshev 1135803
Enable runtime missing index tests
smalyshev a61ed17
More runtime missing index tests
smalyshev 9a81820
Add cancellation/shutdown tests
smalyshev 944df10
Merge branch 'main' into skip-on-fail
smalyshev 9104b47
Merge branch 'main' into skip-on-fail
smalyshev 7c25b35
Fix utils test
smalyshev 2ddfd3f
Merge branch 'main' into skip-on-fail
smalyshev 14b6a4c
Update for new exchange code
smalyshev 82542f8
Fix build
smalyshev d2274f5
Rename method
smalyshev ad6dbc0
Merge branch 'main' into skip-on-fail
smalyshev 177d2dc
Some more comments
smalyshev f46d365
Merge branch 'main' into skip-on-fail
smalyshev 0128877
Post-sync updates
smalyshev 5931658
Merge branch 'main' into skip-on-fail
smalyshev a431cf9
Add test for failure
smalyshev 2a64e30
Update docs/changelog/116365.yaml
smalyshev 778e8e4
Merge branch 'main' into skip-on-fail
smalyshev 8a32dde
Organize listeners & add exchange failure handling
smalyshev 6f035a2
Merge branch 'main' into skip-on-fail
smalyshev 441b390
Test fixes
smalyshev 1e73b14
Pull feedback
smalyshev a32de43
Merge branch 'main' into skip-on-fail
smalyshev 5633936
Merge branch 'main' into skip-on-fail
smalyshev 496c273
Merge branch 'main' into skip-on-fail
smalyshev c0a677b
Merge branch 'main' into skip-on-fail
smalyshev 8a3a5ee
Merge branch 'main' into skip-on-fail
smalyshev cbae222
spotless
smalyshev ff16ebf
Merge branch 'main' into skip-on-fail
smalyshev 1f1601b
fix test
smalyshev 4c19802
Move test
smalyshev 4f360ef
Fix test
smalyshev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 116365 | ||
| summary: Ignore remote ES|QL execution failures when skip_unavailable=true | ||
| area: ES|QL | ||
| type: enhancement | ||
| issues: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...vaRestTest/java/org/elasticsearch/xpack/esql/ccq/EsqlRestValidationSkipUnavailableIT.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| package org.elasticsearch.xpack.esql.ccq; | ||
|
|
||
| import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters; | ||
|
|
||
| import org.elasticsearch.test.TestClustersThreadFilter; | ||
| import org.elasticsearch.test.cluster.ElasticsearchCluster; | ||
| import org.junit.ClassRule; | ||
| import org.junit.rules.RuleChain; | ||
| import org.junit.rules.TestRule; | ||
|
|
||
| import java.io.IOException; | ||
|
|
||
| @ThreadLeakFilters(filters = TestClustersThreadFilter.class) | ||
| public class EsqlRestValidationSkipUnavailableIT extends EsqlRestValidationIT { | ||
| static ElasticsearchCluster localCluster = Clusters.localCluster(remoteCluster, true); | ||
|
|
||
| @ClassRule | ||
| public static TestRule clusterRule = RuleChain.outerRule(remoteCluster).around(localCluster); | ||
|
|
||
| @Override | ||
| protected String getTestRestCluster() { | ||
| return localCluster.getHttpAddresses(); | ||
| } | ||
|
|
||
| @Override | ||
| protected void assertErrorMessageMaybe(String indexName, String errorMessage, int statusCode) throws IOException { | ||
| assertValidRequestOnIndices(new String[] { indexName }); | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.