[ 
https://issues.apache.org/jira/browse/SOLR-18602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133408#comment-18133408
 ] 

Amrit Sarkar commented on SOLR-18602:
-------------------------------------

Attached a failing test: 
{{DeleteReplicaTest.deleteReplicaByCountFollowsAliases}} deletes by {{count}} 
through an alias with {{followAliases=true}}, once for one shard and once 
across all shards. On main it fails with {{Could not find collection : 
deleteByCountAliasName}}.

The fix resolves the alias in {{deleteReplicaBasedOnCount}} the same way the 
replica-name path already does. PR coming shortly.

> 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
>            Priority: Major
>         Attachments: SOLR-18602-failing-test.patch
>
>
> {{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