mirror of https://github.com/apache/lucene.git
add null check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1245927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a668cc9a5e
commit
1cf9bc4e28
|
@ -528,6 +528,11 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
|
|||
boolean leaderForAnyShard = false; // start off by assuming we are not a leader for any shard
|
||||
|
||||
Map<String,Slice> slices = zkController.getCloudState().getSlices(collection);
|
||||
if (slices == null) {
|
||||
throw new SolrException(ErrorCode.BAD_REQUEST,
|
||||
"Cannot find collection:" + collection + " in "
|
||||
+ zkController.getCloudState().getCollections());
|
||||
}
|
||||
|
||||
ModifiableSolrParams params = new ModifiableSolrParams(req.getParams());
|
||||
params.set(DELETE_BY_QUERY_LEVEL, 2);
|
||||
|
|
Loading…
Reference in New Issue