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:
parent
3174b2cbfa
commit
282974215c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue