Skip to content

Commit

Permalink
Fix NPE on Stale Index in IndicesService (elastic#38891)
Browse files Browse the repository at this point in the history
* Closes elastic#38845
  • Loading branch information
original-brownbear committed Apr 9, 2019
1 parent 0a88e7f commit 23e7c59
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,9 @@ public IndexMetaData verifyIndexIsDeleted(final Index index, final ClusterState
final IndexMetaData metaData;
try {
metaData = metaStateService.loadIndexState(index);
if (metaData == null) {
return null;
}
} catch (Exception e) {
logger.warn(() -> new ParameterizedMessage("[{}] failed to load state file from a stale deleted index, " +
"folders will be left on disk", index), e);
Expand Down

0 comments on commit 23e7c59

Please sign in to comment.