mirror of https://github.com/apache/lucene.git
SOLR-2028: fix AutoCommitTest
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@982442 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8dc30b7e3
commit
6da5460911
|
@ -67,8 +67,7 @@ class CommitListener implements SolrEventListener {
|
||||||
// since there could be two commits in a row, don't test for a specific new searcher
|
// since there could be two commits in a row, don't test for a specific new searcher
|
||||||
// just test that the old one has been replaced.
|
// just test that the old one has been replaced.
|
||||||
if (s != currentSearcher) return true;
|
if (s != currentSearcher) return true;
|
||||||
Thread.sleep(250);
|
// it may be that a commit just happened, but the new searcher hasn't been registered yet.
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
Thread.sleep( 250 );
|
Thread.sleep( 250 );
|
||||||
} catch (InterruptedException e) {}
|
} catch (InterruptedException e) {}
|
||||||
|
|
Loading…
Reference in New Issue