Skip to content

Commit

Permalink
add BWC alias for internal index
Browse files Browse the repository at this point in the history
create an alias for old nodes to retrieve new documents in the internal index as they do not know the new index pattern
  • Loading branch information
Hendrik Muhs authored Oct 11, 2019
1 parent ba62eb3 commit 0ca53bd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public static IndexTemplateMetaData getIndexTemplateMetaData() throws IOExceptio
.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;
}
Expand Down

0 comments on commit 0ca53bd

Please sign in to comment.