You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/12/17 16:34:24 UTC
lucene-solr:branch_7x: SOLR-13076: TimeOut breaks the simulation
framework.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 811451152 -> 462adbc7f
SOLR-13076: TimeOut breaks the simulation framework.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/462adbc7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/462adbc7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/462adbc7
Branch: refs/heads/branch_7x
Commit: 462adbc7f639839f2628202c6281ecdab223c9c8
Parents: 8114511
Author: Andrzej Bialecki <ab...@apache.org>
Authored: Mon Dec 17 16:49:27 2018 +0100
Committer: Andrzej Bialecki <ab...@apache.org>
Committed: Mon Dec 17 17:07:27 2018 +0100
----------------------------------------------------------------------
solr/core/src/java/org/apache/solr/util/TimeOut.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/462adbc7/solr/core/src/java/org/apache/solr/util/TimeOut.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/TimeOut.java b/solr/core/src/java/org/apache/solr/util/TimeOut.java
index c06fe6e..d49d363 100644
--- a/solr/core/src/java/org/apache/solr/util/TimeOut.java
+++ b/solr/core/src/java/org/apache/solr/util/TimeOut.java
@@ -61,7 +61,7 @@ public class TimeOut {
public void waitFor(String messageOnTimeOut, Supplier<Boolean> supplier)
throws InterruptedException, TimeoutException {
while (!supplier.get() && !hasTimedOut()) {
- Thread.sleep(250);
+ timeSource.sleep(250);
}
if (hasTimedOut()) throw new TimeoutException(messageOnTimeOut);
}