You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "yuan zhao (Jira)" <ji...@apache.org> on 2019/12/24 08:56:00 UTC
[jira] [Created] (SOLR-14145) Failed to restore collection when
cluster autoscaling policy is applied
yuan zhao created SOLR-14145:
--------------------------------
Summary: Failed to restore collection when cluster autoscaling policy is applied
Key: SOLR-14145
URL: https://issues.apache.org/jira/browse/SOLR-14145
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 7.4
Environment: [^collection_state.json]
Reporter: yuan zhao
Attachments: collection_state.json
My solr cluster respect the autoscaling policy as:
{
"set-cluster-policy" : [{
"replica" : "<2",
"shard" : "#EACH",
"node" : "#ANY"
}]
}
Steps to reproduce:
# create a collection named "demo".
# back up the collection.
# we can find the collecion_state.json file from the backup path. And there is one line records "maxShardsPerNode":"1"
# drop this collection "demo".
# restore collection "demo", I will got the error message: `"'maxShardsPerNode>0' is not supported when autoScaling policies are used",`
# if I change "maxShardsPerNode" to "0" or "-1", I will got error:`"Solr cloud with available number of nodes:2 is insufficient for restoring a collection with 1 shards, total replicas per shard 1 and maxShardsPerNode 2147483647. Consider increasing maxShardsPerNode value OR number of available nodes."`
# if I delete "maxShardsPerNode" from collection_state.json, I will got error:`maxShardsPerNode is not in the cluster state.`
I have attach the collection state file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org