Skip to content

Commit

Permalink
fix index refresh in test within 20_mix_typeless_typeful (#39198) (#3…
Browse files Browse the repository at this point in the history
…9803)

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.
  • Loading branch information
talevy authored Mar 8, 2019
1 parent 027f210 commit 4c9d0f3
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 4c9d0f3

Please sign in to comment.