Commit 9c20e52
Adding _meta.template_version to kibana reporting mappings (elastic#133846) (elastic#134015)
Part of elastic/kibana#231200 .
We realized that when the mappings are updated in a version upgrade,
the mappings are in fact updated, but not applied to the current
reporting datastream.
To fix this, we'll make a determination in Kibana that we should roll
over the data stream if the version in the template does not match the
version in the mappings of the datastream. If they match, we don't need
to do anything. If they don't match, or the version of the mappings is
not in the datastream (from before this PR), we will need to roll over the
data stream to apply the new mappings.
To make this happen, we need to add a new field to the mapping `_meta`,
which should match the template version.
references:
- https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit ebb94bd)
# Conflicts:
# x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java1 parent d0635f3 commit 9c20e52
File tree
2 files changed
+4
-1
lines changed- x-pack/plugin
- core/template-resources/src/main/resources
- stack/src/main/java/org/elasticsearch/xpack/stack
2 files changed
+4
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments