lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <>
Subject [jira] [Commented] (SOLR-11839) Fix test failures resulting from SOLR-11218
Date Wed, 10 Jan 2018 04:38:00 GMT


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:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message