mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-492: Incrementally waiting for cores
This commit is contained in:
+2
-1
@@ -497,6 +497,7 @@ public abstract class AbstractAlfrescoDistributedTest extends SolrTestCaseJ4
|
||||
{
|
||||
long timeout = startMillis + waitMillis;
|
||||
int totalHits = 0;
|
||||
int increment = 1;
|
||||
while(new Date().getTime() < timeout)
|
||||
{
|
||||
RefCounted<SolrIndexSearcher> refCounted = null;
|
||||
@@ -508,7 +509,7 @@ public abstract class AbstractAlfrescoDistributedTest extends SolrTestCaseJ4
|
||||
if (topDocs.totalHits == expectedNumFound) {
|
||||
return;
|
||||
} else {
|
||||
Thread.sleep(2000);
|
||||
Thread.sleep(500 * increment++);
|
||||
}
|
||||
} finally {
|
||||
refCounted.decref();
|
||||
|
||||
Reference in New Issue
Block a user