Skip to content

Commit 6c52da5

Browse files
authored
fix index refresh in test within 20_mix_typeless_typeful (#39198) (#39804)
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.
1 parent 5612ed9 commit 6c52da5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_mix_typeless_typeful.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
"Implicitly create a typeless index while there is a typed template":
105105

106106
- skip:
107-
version: "all"
108-
reason: "awaits fix in #39198"
107+
version: " - 6.99.99"
108+
reason: needs typeless index operations to work on typed indices
109109

110110
- do:
111111
indices.put_template:
@@ -124,6 +124,11 @@
124124
index: test-1
125125
body: { bar: 42 }
126126

127+
# ensures dynamic mapping update is visible to get_mapping
128+
- do:
129+
cluster.health:
130+
wait_for_events: normal
131+
127132
- do:
128133
indices.get_mapping:
129134
include_type_name: true

0 commit comments

Comments
 (0)