mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
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…
x
Reference in New Issue
Block a user