[ https://issues.apache.org/jira/browse/SOLR-16477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17624764#comment-17624764 ]
ASF subversion and git services commented on SOLR-16477: -------------------------------------------------------- Commit 5d251ffb1500056f45d16cc8721b4c8ad5502bb0 in solr's branch refs/heads/branch_9x from Alex [ https://gitbox.apache.org/repos/asf?p=solr.git;h=5d251ffb150 ] SOLR-16477: Collection RENAME api creates broken alias (#1127) Co-authored-by: Kevin Risden <kris...@apache.org> > Collection RENAME api creates broken alias > ------------------------------------------ > > Key: SOLR-16477 > URL: https://issues.apache.org/jira/browse/SOLR-16477 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Affects Versions: 9.0, 8.11.2, 9.1 > Reporter: Alex Deparvu > Assignee: Kevin Risden > Priority: Major > Fix For: main (10.0), 9.2 > > Attachments: broken-alias.png > > Time Spent: 2h 10m > Remaining Estimate: 0h > > Renaming a collection results in a broken alias (name as the source param) > pointing to a non-existent collection (named as the target param). > Steps to reproduce: > * First create a new collection > {noformat} > bin/solr create -c films -s 2 -rf 2 > {noformat} > * Second issue rename call > {noformat} > > curl -X POST > > "http://127.0.0.1:8983/solr/admin/collections?action=RENAME&name=films&target=morefilms" > { "responseHeader":{ "status":0, "QTime":125}} > {noformat} > > This will create an alias called 'films' pointing to a collection named > 'morefilms', when it should be the other way around. > > {noformat} > > curl -X GET http://localhost:8983/api/cluster/aliases > { > "responseHeader": { > "status": 0, > "QTime": 0 > }, > "aliases": { > "films": "morefilms" > }, > "properties": {} > } {noformat} > > !broken-alias.png|height=250! > > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org