Skip to content

Throws IndexNotFoundException in TransportGetAction for unknown indices (#61785)#61791

Merged
tlrx merged 1 commit intoelastic:7.xfrom
tlrx:safe-indexmetadata-in-get-action-7.x
Sep 1, 2020
Merged

Throws IndexNotFoundException in TransportGetAction for unknown indices (#61785)#61791
tlrx merged 1 commit intoelastic:7.xfrom
tlrx:safe-indexmetadata-in-get-action-7.x

Conversation

@tlrx
Copy link
Copy Markdown
Member

@tlrx tlrx commented Sep 1, 2020

Backport of #61785 for 7.10.0

The change #57936 introduced a dedicated thread pool for reads in system indices.
It also introduced a potential NPE in the case the index to read in not yet present in
the cluster state. This commit fixes that bug by using the getIndexSafe() instead of
just index() method when retrieving the index's metadata so that an INFE is thrown
if the index does not exist.

…m indices (elastic#61785)

The change elastic#57936 introduced a dedicated thread pool for reads in system indices. 
It also introduced a potential NPE in the case the index to read in not yet present in 
the cluster state. This commit fixes that bug by using the getIndexSafe() instead of 
just index() method when retrieving the index's metadata so that an INFE is thrown 
if the index does not exist.
@tlrx tlrx added :Core/Infra/Core Core issues without another label backport v7.10.0 labels Sep 1, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Sep 1, 2020
@tlrx tlrx merged commit 6e944d9 into elastic:7.x Sep 1, 2020
@tlrx tlrx deleted the safe-indexmetadata-in-get-action-7.x branch September 1, 2020 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants