the test "Implicitly create a typeless ... typed template" fails occasionally because the index operation hasn't propogated to update the index mapping in time for the following assertion about a dynamically mapped field "bar". error failed with: ``` field [test-1.mappings.my_type.properties.bar] doesn't have a true value Expected: not null but: was null ``` refreshing the index should resolve this timing issue.
This commit is contained in:
parent
5612ed97ca
commit
6c52da54c8
|
@ -104,8 +104,8 @@
|
||||||
"Implicitly create a typeless index while there is a typed template":
|
"Implicitly create a typeless index while there is a typed template":
|
||||||
|
|
||||||
- skip:
|
- skip:
|
||||||
version: "all"
|
version: " - 6.99.99"
|
||||||
reason: "awaits fix in #39198"
|
reason: needs typeless index operations to work on typed indices
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.put_template:
|
indices.put_template:
|
||||||
|
@ -124,6 +124,11 @@
|
||||||
index: test-1
|
index: test-1
|
||||||
body: { bar: 42 }
|
body: { bar: 42 }
|
||||||
|
|
||||||
|
# ensures dynamic mapping update is visible to get_mapping
|
||||||
|
- do:
|
||||||
|
cluster.health:
|
||||||
|
wait_for_events: normal
|
||||||
|
|
||||||
- do:
|
- do:
|
||||||
indices.get_mapping:
|
indices.get_mapping:
|
||||||
include_type_name: true
|
include_type_name: true
|
||||||
|
|
Loading…
Reference in New Issue