You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Markus Jelsma <ma...@openindex.io> on 2015/10/05 10:36:49 UTC
Implementing AbstractFullDistribZkTestBase
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
Re: Implementing AbstractFullDistribZkTestBase
Posted by Erick Erickson <er...@gmail.com>.
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
<ma...@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