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 15:51:31 UTC

lucene-solr:master: SOLR-13076: TimeOut breaks the simulation framework.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 785d02208 -> f5479383b


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/f5479383
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f5479383
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f5479383

Branch: refs/heads/master
Commit: f5479383b1613966ca5de59876603228b5de6b09
Parents: 785d022
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 16:49: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/f5479383/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);
   }