Skip to content

Commit

Permalink
Skip loading index state during ready endpoint (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
desiam authored May 26, 2022
1 parent 2331ba4 commit 1a287af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,8 @@ public void ready(
try {
List<String> indicesNotStarted = new ArrayList<>();
for (String indexName : indexNames) {
IndexState indexState = globalState.getIndex(indexName);
// The ready endpoint should skip loading index state
IndexState indexState = globalState.getIndex(indexName, true);
if (!indexState.isStarted()) {
indicesNotStarted.add(indexName);
}
Expand Down

0 comments on commit 1a287af

Please sign in to comment.