Return 503 for search against a node which is not yet ready, closes #1713.
This commit is contained in:
parent
7bd87e12a2
commit
bf36681e34
|
@ -105,6 +105,8 @@ public abstract class TransportSearchTypeAction extends TransportAction<SearchRe
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue