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

Erick Erickson commented on SOLR-11839:
---------------------------------------

The key here is that there are two tests in that file. There's also an @Before 
method that deletes all collections with the note:

//TODO this is necessary when -Dtests.iters but why? Some other tests aren't 
affected

test() creates an alias, testParse() just does some parser testing. So if 
test() runs first, testParse() will fail in the @Before method because an alias 
still points to one of the live collections. Simple fix to delete the alias in 
@Before.

Solr doesn't care if you delete an alias that's not there so this should be 
fine. Single test with that seed succeeds

Running a test now with tests.iters=100 just to exercise the suite since the 
comment makes me nervous, will probably check this in this evening.

I'll leave this JIRA open for a while though in case other variants pop out.

> Fix test failures resulting from SOLR-11218
> -------------------------------------------
>
>                 Key: SOLR-11839
>                 URL: https://issues.apache.org/jira/browse/SOLR-11839
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>
> Any test that deletes a collection before deleting any alias that points to 
> it will start failing. The fix will probably be to order your deletions to 
> delete or redefine aliases first. 
> > create collections
> > create aliases
> > remove aliases
> > remove collections



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to