add BWC alias for internal index
create an alias for old nodes to retrieve new documents in the internal index as they do not know the new index pattern
This commit is contained in:
parent
ba62eb3dce
commit
0ca53bd80e
|
@ -82,6 +82,8 @@ public final class TransformInternalIndex {
|
||||||
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-1"))
|
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-1"))
|
||||||
// todo: remove type
|
// todo: remove type
|
||||||
.putMapping(MapperService.SINGLE_MAPPING_NAME, Strings.toString(mappings()))
|
.putMapping(MapperService.SINGLE_MAPPING_NAME, Strings.toString(mappings()))
|
||||||
|
// BWC: for mixed clusters with nodes < 7.5, we need the alias to make new docs visible for them
|
||||||
|
.putAlias(AliasMetaData.builder(".data-frame-internal-3"))
|
||||||
.build();
|
.build();
|
||||||
return transformTemplate;
|
return transformTemplate;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue