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:
Hendrik Muhs 2019-10-11 17:15:01 +02:00 committed by GitHub
parent ba62eb3dce
commit 0ca53bd80e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ public final class TransformInternalIndex {
.put(IndexMetaData.SETTING_AUTO_EXPAND_REPLICAS, "0-1"))
// todo: remove type
.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();
return transformTemplate;
}