OpenSearch/x-pack/plugin
Luca Cavanna 93c39ad4e7 Async search: create internal index only before storing initial response (#54619)
We currently create the .async-search index if necessary before performing any action (index, update or delete). Truth is that this is needed only before storing the initial response. The other operations are either update or delete, which will anyways not find the document to update/delete even if the index gets created when missing. This also caused `testCancellation` failures as we were trying to delete the document twice from the .async-search index, once from `TransportDeleteAsyncSearchAction` and once as a consequence of the search task being completed. The latter may be called after the test is completed, but before the cluster is shut down and causing problems to the after test checks, for instance if it happens after all the indices have been cleaned up. It is totally fine to try to delete a response that is no longer found, but not quite so if such call will also trigger an index creation.

With this commit we remove all the calls to createIndexIfNecessary from the update/delete operation, and we leave one call only from storeInitialResponse which is where the index is expected to be created.

Closes #54180
2020-04-10 18:24:05 +02:00
..
analytics Remove pipline aggs from agg result tree (backport of #54716) (#54920) 2020-04-07 17:22:23 -04:00
async-search Async search: create internal index only before storing initial response (#54619) 2020-04-10 18:24:05 +02:00
autoscaling Add wire tests for get autoscaling decision objects 2020-04-05 21:34:36 -04:00
ccr Clear recent errors when auto-follow successfully (#54997) 2020-04-09 14:35:16 -04:00
core Clean up even more instances of "metaData" 2020-04-10 08:52:37 -04:00
deprecation Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
enrich Reintroduce system index APIs for Kibana (#54935) 2020-04-08 09:08:49 -06:00
eql EQL: Add string function (#54470) 2020-04-10 09:48:29 -06:00
frozen-indices Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
graph Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
identity-provider Mute SamlServiceProviderDocumentTests.testStreamRoundTripWithAllFields 2020-04-08 12:56:36 -07:00
ilm Mute testSearchableSnapshotAction in TimeSeriesLifecycleActions tests (#55055) 2020-04-10 16:03:09 +03:00
logstash Reintroduce system index APIs for Kibana (#54935) 2020-04-08 09:08:49 -06:00
mapper-constant-keyword Introduce a `constant_keyword` field. (#49713) (#53024) 2020-03-03 16:01:47 +01:00
mapper-flattened Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
ml [7.x] Do not execute ML CRUD actions when upgrade mode is enabled (#54437) (#55049) 2020-04-10 16:07:11 +02:00
monitoring Remove Xlint exclusions from gradle files (part 2) 2020-04-03 12:15:42 +01:00
ql SQL: drop BASE TABLE type in favour for just TABLE (#54836) (#54951) 2020-04-08 16:02:12 +02:00
rollup Remove Xlint exclusions from gradle files (part 2) 2020-04-03 12:15:42 +01:00
search-business-rules [7.x] Create new `geo` module and migrate geo_shape registration (#53562) (#54924) 2020-04-07 16:30:58 -07:00
searchable-snapshots Enable searchable snapshots for release tests (#54987) 2020-04-08 14:41:03 -07:00
security Reintroduce system index APIs for Kibana (#54935) 2020-04-08 09:08:49 -06:00
spatial [7.x] Create new `geo` module and migrate geo_shape registration (#53562) (#54924) 2020-04-07 16:30:58 -07:00
sql SQL: Implement DATETIME_PARSE function for parsing strings (#54960) (#55035) 2020-04-10 01:16:29 +02:00
src/test [7.x] Do not execute ML CRUD actions when upgrade mode is enabled (#54437) (#55049) 2020-04-10 16:07:11 +02:00
transform [Transform] fix sporadic test failure due to unavailable notif… (#54939) 2020-04-09 08:04:42 +02:00
vectors Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
voting-only-node Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
watcher Clarify available processors (#54907) 2020-04-10 08:48:27 -04:00
wildcard Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
build.gradle [7.x] Add Watcher to available rest resources (#53620) (#53764) 2020-03-19 12:29:36 -05:00