[Transform] wait for deprecated index shards to get active (#47997)

wait for deprecated index shards to get active
This commit is contained in:
Hendrik Muhs 2019-10-14 20:11:14 +02:00
parent f6f5efe141
commit 17d8ee9a9c
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ public class TransformPersistentTasksExecutor extends PersistentTasksExecutor<Tr
IndexNameExpressionResolver resolver = new IndexNameExpressionResolver();
String[] indices = resolver.concreteIndexNames(clusterState,
IndicesOptions.lenientExpandOpen(),
TransformInternalIndexConstants.INDEX_NAME_PATTERN);
TransformInternalIndexConstants.INDEX_NAME_PATTERN,
TransformInternalIndexConstants.INDEX_NAME_PATTERN_DEPRECATED);
List<String> unavailableIndices = new ArrayList<>(indices.length);
for (String index : indices) {
IndexRoutingTable routingTable = clusterState.getRoutingTable().index(index);