OpenSearch/x-pack/plugin
Andrei Dan 1b84e93d83
[7.x] DataStream creation validation allows for prefixed indices (#57750) (#57799)
We want to validate the DataStreams on creation to make sure the future backing
indices would not clash with existing indices in the system (so we can
always rollover the data stream).
This changes the validation logic to allow for a DataStream to be created
with a backing index that has a prefix (eg. `shrink-foo-000001`) even if the
former backing index (`foo-000001`) exists in the system.
The new validation logic will look for potential index conflicts with indices
in the system that have the counter in the name greater than the data stream's
generation.

This ensures that the `DataStream`'s future rollovers are safe because for a
`DataStream` `foo` of generation 4, we will look for standalone indices in the
form of `foo-%06d` with the counter greater than 4 (ie. validation will fail if
`foo-000006` exists in the system), but will also allow replacing a
backing index with an index named by prefixing the backing index it replaces.

(cherry picked from commit 695b242d69f0dc017e732b63737625adb01fe595)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-06-08 13:31:52 +01:00
..
analytics IndexFieldData should hold the ValuesSourceType (#57373) (#57532) 2020-06-02 12:16:53 -04:00
async-search Add description to submit and get async search, as well as cancel tasks (#57745) 2020-06-08 11:17:29 +02:00
autoscaling Migrate remaining ESIntegTestCases to internalClusterTest (#56479) (#56563) 2020-05-11 21:06:04 -07:00
ccr Add History UUID Index Setting (#56930) (#57104) 2020-05-25 11:26:03 +02:00
core [7.x] DataStream creation validation allows for prefixed indices (#57750) (#57799) 2020-06-08 13:31:52 +01:00
deprecation Add xpack setting deprecations to deprecation API (#56290) 2020-05-07 10:28:17 -04:00
enrich Fix enrich coordinator to reject documents instead of deadlocking (#56247) (#57179) 2020-05-27 15:32:13 -04:00
eql Change error message for comp against fields (#57126) 2020-05-26 17:57:51 +02:00
frozen-indices [7.x] Add new circuitbreaker plugin and refactor CircuitBreakerService (#55695) (#57359) 2020-05-29 12:13:46 -04:00
graph Merge significant_terms into the terms package (backport of #56699) (#56715) 2020-05-13 17:36:21 -04:00
identity-provider Disable testing conventions for idp in fips (#57663) (#57676) 2020-06-04 20:51:38 +03:00
ilm Revert "Restore xpack.ilm.enabled and xpack.slm.enabled settings (#57383)" 2020-06-04 16:25:05 -04:00
logstash Deprecated xpack "enable" settings should be no-ops (#55416) (#56167) 2020-05-05 10:40:49 -04:00
mapper-constant-keyword IndexFieldData should hold the ValuesSourceType (#57373) (#57532) 2020-06-02 12:16:53 -04:00
mapper-flattened IndexFieldData should hold the ValuesSourceType (#57373) (#57532) 2020-06-02 12:16:53 -04:00
ml [7.x] Delete expired data by job (#57337) (#57796) 2020-06-08 13:00:23 +01:00
monitoring [7.x] Ensure type exists for all monitoring configuration (#57399) (#57704) 2020-06-05 10:47:11 -05:00
ql SQL: Make CASTing string to DATETIME more lenient (#57451) (#57509) 2020-06-02 10:54:03 +02:00
rollup Merge significant_terms into the terms package (backport of #56699) (#56715) 2020-05-13 17:36:21 -04:00
search-business-rules Migrate remaining ESIntegTestCases to internalClusterTest (#56479) (#56563) 2020-05-11 21:06:04 -07:00
searchable-snapshots Remove more //NORELEASE (#57517) 2020-06-05 15:34:06 +02:00
security [7.x] Add http proxy support for OIDC realm (#57039) (#57584) 2020-06-04 20:51:00 +03:00
spatial Include vendored code notices in distribution notice files (#57017) (#57569) 2020-06-04 10:34:24 -07:00
sql Remove duplicate ssl setup in sql/qa projects (#57319) (#57643) 2020-06-04 14:53:23 +02:00
src/test [7.x] Delete expired data by job (#57337) (#57796) 2020-06-08 13:00:23 +01:00
transform [Transform] use old roles only together with old endpoints (#57710) 2020-06-05 10:08:05 +02:00
vectors Remove the 'array value parser' marker interface. (#57571) (#57622) 2020-06-03 11:30:14 -07:00
voting-only-node Convert remaining license methods to isAllowed (#55908) (#55991) 2020-04-30 15:52:22 -07:00
watcher Revert "Restore xpack.ilm.enabled and xpack.slm.enabled settings (#57383)" 2020-06-04 16:25:05 -04:00
wildcard IndexFieldData should hold the ValuesSourceType (#57373) (#57532) 2020-06-02 12:16:53 -04:00
build.gradle Convert remaining compilerJavaHome reference 2020-05-27 17:04:04 -07:00