MetaDataIndexAliasesService wrong get type (#28614)

A get of the wrong type would always have returned null so these
indices would have been inserted into the map repeatedly.
This commit is contained in:
Robin Neatherway 2018-02-12 23:55:17 +00:00 committed by Ryan Ernst
parent 3174b2cbfa
commit 282974215c
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ public class MetaDataIndexAliasesService extends AbstractComponent {
Function<String, IndexMetaData> indexLookup = name -> metadata.get(name);
aliasValidator.validateAlias(alias, action.getIndex(), indexRouting, indexLookup);
if (Strings.hasLength(filter)) {
IndexService indexService = indices.get(index.getIndex());
IndexService indexService = indices.get(index.getIndex().getName());
if (indexService == null) {
indexService = indicesService.indexService(index.getIndex());
if (indexService == null) {