Skip to content

ES Indices /GET api return closed indices if they have aliases assigned. #45171

@SthPhoenix

Description

@SthPhoenix

Elasticsearch version: 7.1.0, 7.2.0

Plugins installed: [analysis-icu, analysis-smartc, analysis-phonetic]

JVM version : bundled

OS version: Ubuntu 18.04.2

Description of the problem including expected versus actual behavior:

Actual: Elasticsearch Indices /GET API return closed indices if they has assigned aliases.
Expected: ES should return only opened indices.

Aliases are unique to closed indices, and there are no opened indices sharing same aliases.

Steps to reproduce:

  1. Create new index
  2. Put alias to this index
  3. Close index
  4. Execute GET http://elasticsearch.host:9200/* to get list of indices including closed just now.
  5. Delete alias from closed index.
  6. Execute GET http://elasticsearch.host:9200/* to get list of indices without closed one.

Metadata

Metadata

Assignees

Labels

:Security/SecuritySecurity issues without another labelTeam:SecurityMeta label for security team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions