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.
This commit is contained in:
Tal Levy 2019-03-08 12:15:32 -08:00 committed by GitHub
parent 5612ed97ca
commit 6c52da54c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -104,8 +104,8 @@
"Implicitly create a typeless index while there is a typed template":
- skip:
version: "all"
reason: "awaits fix in #39198"
version: " - 6.99.99"
reason: needs typeless index operations to work on typed indices
- do:
indices.put_template:
@ -124,6 +124,11 @@
index: test-1
body: { bar: 42 }
# ensures dynamic mapping update is visible to get_mapping
- do:
cluster.health:
wait_for_events: normal
- do:
indices.get_mapping:
include_type_name: true