Amrit Sarkar created SOLR-18602:
-----------------------------------

             Summary: DELETEREPLICA with count ignores followAliases
                 Key: SOLR-18602
                 URL: https://issues.apache.org/jira/browse/SOLR-18602
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud
            Reporter: Amrit Sarkar


{{DELETEREPLICA}} by {{count}} fails when {{collection}} is an alias, even with 
{{followAliases=true}}:
{noformat}
/admin/collections?action=DELETEREPLICA&collection=myAlias&shard=shard1&count=1&followAliases=true
{noformat}
returns {{Could not find collection : myAlias}}.

{{DeleteReplicaCmd.call}} routes count requests to 
{{deleteReplicaBasedOnCount}} before it reads {{followAliases}}, and 
{{deleteReplicaBasedOnCount}} looks up {{collection}} as given. Deleting by 
replica name ({{replica=...}}) resolves the alias and works.

Expected: resolve the alias in the count path too, with or without {{shard}}.

Found while writing tests for SOLR-18589.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to