Right, I'm assuming you're creating a cluster somewhere.
Try calling (from memory) waitForRecoveriesToFinish in
AbstractDistribZkTestBase after creating the collection
to insure that the nodes are up and running before you
index to them.

Shot in the dark
Erick

On Mon, Oct 5, 2015 at 1:36 AM, Markus Jelsma
<markus.jel...@openindex.io> wrote:
> Hello,
>
> I have several implementations of AbstractFullDistribZkTestBase of Solr 
> 5.3.0. Sometimes a test fails with either "There are still nodes recoverying 
> - waited for 30 seconds" or "IOException occured when talking to server at: 
> https://127.0.0.1:44474/collection1";, so usually at least one of all test 
> fails. These are very simple implementations such as :
>
>   @Test
>   @ShardsFixed(num = 2)
>   public void testSomeStuff() throws Exception {
>     waitForThingsToLevelOut(30);
>
>     del("*:*");
>     indexDoc("input 1", "user_1");
>     indexDoc("input 1", "user_2");
>     indexDoc("input 2", "user_1");
>     indexDoc("input 2", "user_2");
>     commit();
>
> Any idea on how to get rid of the nodes recovering issue?
> Markus

Reply via email to