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-11285: Remove stray logging. Relax test assertion due to timing under load.
Date Fri, 15 Dec 2017 10:32:12 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x b1ce5e208 -> 7f3064623


SOLR-11285: Remove stray logging. Relax test assertion due to timing under load.


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

Branch: refs/heads/branch_7x
Commit: 7f30646237f0dafd98ec5c548a4442c623823b0f
Parents: b1ce5e2
Author: Andrzej Bialecki <ab@apache.org>
Authored: Fri Dec 15 11:30:50 2017 +0100
Committer: Andrzej Bialecki <ab@apache.org>
Committed: Fri Dec 15 11:31:53 2017 +0100

----------------------------------------------------------------------
 .../solr/cloud/autoscaling/sim/SimDistribStateManager.java   | 1 -
 .../solr/cloud/autoscaling/sim/TestTriggerIntegration.java   | 8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7f306462/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/SimDistribStateManager.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/SimDistribStateManager.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/SimDistribStateManager.java
index f9f17a0..cfa6265 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/SimDistribStateManager.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/SimDistribStateManager.java
@@ -303,7 +303,6 @@ public class SimDistribStateManager implements DistribStateManager {
     for (int i = 0; i < elements.length; i++) {
       String currentName = elements[i];
       currentPath.append('/');
-      LOG.info(" - parentNode=" + parentNode + ", currentName=" + currentName);
       n = parentNode.children != null ? parentNode.children.get(currentName) : null;
       if (n == null) {
         if (create) {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7f306462/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestTriggerIntegration.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestTriggerIntegration.java
b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestTriggerIntegration.java
index a05eb78..3a118f2 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestTriggerIntegration.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestTriggerIntegration.java
@@ -1209,9 +1209,9 @@ public class TestTriggerIntegration extends SimSolrCloudTestCase {
     assertEquals(collectionRates.toString(), 1, collectionRates.size());
     Double collectionRate = collectionRates.get(COLL1);
     assertNotNull(collectionRate);
-    assertTrue(collectionRate > 5.0);
-    assertEquals(collectionRate, totalNodeRate.get(), 5.0);
-    assertEquals(collectionRate, totalShardRate.get(), 5.0);
-    assertEquals(collectionRate, totalReplicaRate.get(), 5.0);
+    assertTrue(collectionRate > 100.0);
+    assertTrue(totalNodeRate.get() > 100.0);
+    assertTrue(totalShardRate.get() > 100.0);
+    assertTrue(totalReplicaRate.get() > 100.0);
   }
 }


Mime
View raw message