OpenSearch/qa
Martijn van Groningen 17bd559253
Fix the timestamp field of a data stream to @timestamp (#59210)
Backport of #59076 to 7.x branch.

The commit makes the following changes:
* The timestamp field of a data stream definition in a composable
  index template can only be set to '@timestamp'.
* Removed custom data stream timestamp field validation and reuse the validation from `TimestampFieldMapper` and
  instead only check that the _timestamp field mapping has been defined on a backing index of a data stream.
* Moved code that injects _timestamp meta field mapping from `MetadataCreateIndexService#applyCreateIndexRequestWithV2Template58956(...)` method
  to `MetadataIndexTemplateService#collectMappings(...)` method.
* Fixed a bug (#58956) that cases timestamp field validation to be performed
  for each template and instead of the final mappings that is created.
* only apply _timestamp meta field if index is created as part of a data stream or data stream rollover,
this fixes a docs test, where a regular index creation matches (logs-*) with a template with a data stream definition.

Relates to #58642
Relates to #53100
Closes #58956
Closes #58583
2020-07-08 17:30:46 +02:00
..
ccs-unavailable-clusters Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
die-with-dignity RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
evil-tests Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
full-cluster-restart Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
logging-config ThreadPool and ThreadContext are not closeable (#43249) (#49273) 2019-11-19 13:15:16 -07:00
mixed-cluster 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
multi-cluster-search Fix the timestamp field of a data stream to @timestamp (#59210) 2020-07-08 17:30:46 +02:00
no-bootstrap-tests Prevent unexpected native controller output hanging the process (#56685) 2020-05-13 22:57:00 +01:00
os Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
remote-clusters Scripting: Deprecate general cache settings (#55753) (#58283) 2020-06-18 11:54:23 -06:00
repository-multi-version Remove deprecated usage of testCompile configuration (#57921) (#58083) 2020-06-14 22:30:44 +02:00
rolling-upgrade Fix recovery stage transition with sync_id (#57754) 2020-07-07 12:00:37 -04:00
smoke-test-client Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
smoke-test-http Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
smoke-test-ingest-disabled 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
smoke-test-ingest-with-all-dependencies 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
smoke-test-multinode 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
smoke-test-plugins 7.x - Create plugin for yamlTest task (#56841) (#59090) 2020-07-06 14:16:26 -05:00
translog-policy Omit translog bwc test before 6.3.0 with default distro (#57266) 2020-05-28 12:38:30 -07:00
unconfigured-node-name Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
verify-version-constants Move bwcVersions extension property to BuildParams (back port) (#56381) 2020-05-11 09:39:13 +02:00
wildfly Replace compile configuration usage with api (7.x backport) (#58721) 2020-06-30 15:57:41 +02:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00