You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- "[index.data_path] setting was deprecated in Elasticsearch and will be removed in a future release. See the deprecation documentation for the next major version."
Copy file name to clipboardExpand all lines: qa/smoke-test-ingest-with-all-dependencies/src/yamlRestTest/resources/rest-api-spec/test/ingest/80_ingest_simulate.yml
"Test ingest simulate with mapping addition for data streams when write index has different mapping":
1850
+
# In this test, we make sure that when a data stream's write index has a mapping that is different from the mapping
1851
+
# in its template, and a mapping_override is given, then the mapping_override is applied to the mapping of the write
1852
+
# index rather than the mapping of the template.
1853
+
1854
+
- skip:
1855
+
features:
1856
+
- headers
1857
+
- allowed_warnings
1858
+
1859
+
- do:
1860
+
cluster.put_component_template:
1861
+
name: mappings_template
1862
+
body:
1863
+
template:
1864
+
mappings:
1865
+
dynamic: strict
1866
+
properties:
1867
+
foo:
1868
+
type: boolean
1869
+
bar:
1870
+
type: boolean
1871
+
1872
+
- do:
1873
+
allowed_warnings:
1874
+
- "index template [my-template-1] has index patterns [simple-data-stream1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template-1] will take precedence during new index creation"
1875
+
indices.put_index_template:
1876
+
name: my-template-1
1877
+
body:
1878
+
index_patterns: [simple-data-stream1]
1879
+
composed_of:
1880
+
- mappings_template
1881
+
data_stream: {}
1882
+
1883
+
- do:
1884
+
indices.create_data_stream:
1885
+
name: simple-data-stream1
1886
+
- is_true: acknowledged
1887
+
1888
+
- do:
1889
+
cluster.health:
1890
+
wait_for_status: yellow
1891
+
1892
+
# Now that the data stream exists, we change the template to remove the mapping for bar. The write index still has the
1893
+
# old mapping.
1894
+
- do:
1895
+
cluster.put_component_template:
1896
+
name: mappings_template
1897
+
body:
1898
+
template:
1899
+
mappings:
1900
+
properties:
1901
+
foo:
1902
+
type: boolean
1903
+
1904
+
# We expect the mapping_addition to be added to the mapping of the write index, which has a boolean bar field. So this
0 commit comments