Skip to content

Commit

Permalink
Return 503 for search against a node which is not yet ready, closes #…
Browse files Browse the repository at this point in the history
…1713.
  • Loading branch information
kimchy committed Feb 17, 2012
1 parent 7bd87e1 commit bf36681
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ protected BaseAsyncAction(SearchRequest request, ActionListener<SearchResponse>
this.clusterState = clusterService.state();
nodes = clusterState.nodes();

clusterState.blocks().globalBlockedRaiseException(ClusterBlockLevel.READ);

String[] concreteIndices = clusterState.metaData().concreteIndices(request.indices(), false, true);

for (String index : concreteIndices) {
Expand Down

0 comments on commit bf36681

Please sign in to comment.