From 0ca53bd80e9c54ad6d6823d63140841445ee637f Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Fri, 11 Oct 2019 17:15:01 +0200 Subject: [PATCH] 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 --- .../xpack/transform/persistence/TransformInternalIndex.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java b/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java index 5756d3654c0..2799506de8b 100644 --- a/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java +++ b/x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/persistence/TransformInternalIndex.java @@ -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; }