lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject lucene-solr:branch_7x: SOLR-11670: Make sure defaults are applied in simulated cluster.
Date Mon, 19 Mar 2018 14:17:52 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 7fdbedeb1 -> f6319d6d0


SOLR-11670: Make sure defaults are applied in simulated cluster.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f6319d6d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f6319d6d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f6319d6d

Branch: refs/heads/branch_7x
Commit: f6319d6d0a80e5f82b26f6b340ad250618f6b565
Parents: 7fdbede
Author: Andrzej Bialecki <ab@apache.org>
Authored: Mon Mar 19 15:16:50 2018 +0100
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Mon Mar 19 15:17:46 2018 +0100

----------------------------------------------------------------------
 .../solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f6319d6d/solr/core/src/test/org/apache/solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java
index a0b6509..acd548c 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/ScheduledMaintenanceTriggerTest.java
@@ -68,6 +68,10 @@ public class ScheduledMaintenanceTriggerTest extends SolrCloudTestCase
{
       solrClient = cluster.getSolrClient();
     } else {
       cloudManager = SimCloudManager.createCluster(1, TimeSource.get("simTime:50"));
+      // wait for defaults to be applied - due to accelerated time sometimes we may miss
this
+      cloudManager.getTimeSource().sleep(10000);
+      AutoScalingConfig cfg = cloudManager.getDistribStateManager().getAutoScalingConfig();
+      assertFalse("autoscaling config is empty", cfg.isEmpty());
       solrClient = ((SimCloudManager)cloudManager).simGetSolrClient();
     }
     timeSource = cloudManager.getTimeSource();


Mime
View raw message