curl 'http://172.19.0.6:8983/solr/admin/collections?action=REBALANCELEADERS&collection=test'
{
"responseHeader":{
"status":0,
"QTime":3053},
"Summary":{
"Success":"All active replicas with the preferredLeader property set are leaders"},
"successes":{
"shard1":{
"status":"success",
"msg":"Successfully changed leader of slice shard1 to core_node3"}}}
curl 'http://172.19.0.6:8983/solr/admin/collections?action=FORCELEADER&collection=test&shard=shard2'
{
"responseHeader":{
"status":500,
"QTime":35},
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"The shard already has an active leader. Force leader is not applicable. State: shard2:{
(略)
"code":500}}