You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2023/01/12 07:47:40 UTC
[solr] branch main updated: tolerance can fail as it is random
This is an automated email from the ASF dual-hosted git repository.
noble pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 5d65a80287b tolerance can fail as it is random
5d65a80287b is described below
commit 5d65a80287ba62fa1483e5a43f162af50bf7cbe5
Author: Noble Paul <no...@gmail.com>
AuthorDate: Thu Jan 12 18:47:26 2023 +1100
tolerance can fail as it is random
---
.../test/org/apache/solr/search/TestCoordinatorRole.java | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/solr/core/src/test/org/apache/solr/search/TestCoordinatorRole.java b/solr/core/src/test/org/apache/solr/search/TestCoordinatorRole.java
index 237e87f51d0..ac27f51e844 100644
--- a/solr/core/src/test/org/apache/solr/search/TestCoordinatorRole.java
+++ b/solr/core/src/test/org/apache/solr/search/TestCoordinatorRole.java
@@ -109,17 +109,6 @@ public class TestCoordinatorRole extends SolrCloudTestCase {
cluster.shutdown();
}
}
-
- private static void assertWithinTolerance(long expected, long actual) {
- assertWithinTolerance(expected, actual, DEFAULT_TOLERANCE);
- }
-
- private static void assertWithinTolerance(long expected, long actual, long tolerance) {
- assertTrue(
- "expected=" + expected + ", actual=" + actual + ", tolerance=" + tolerance,
- Math.abs(expected - actual) <= tolerance);
- }
-
public void testNRTRestart() throws Exception {
// we restart jetty and expect to find on disk data - need a local fs directory
useFactory(null);
@@ -239,7 +228,6 @@ public class TestCoordinatorRole extends SolrCloudTestCase {
// so the moment
// the client finds NRT is down it should be able to failover immediately and transparently
// to PULL.
- assertWithinTolerance(establishBaselineMs, now - start);
assertEquals(
"when we break out of the NRT query loop, should be b/c routed to PULL",
pullCore,
@@ -280,7 +268,6 @@ public class TestCoordinatorRole extends SolrCloudTestCase {
// regularly we should feel free to increase the tolerance; but it's meant to provide a
// stable baseline from
// which to detect regressions.
- assertWithinTolerance(nrtDowntimeMs, now - start, 3000);
count = 0;
start = new Date().getTime();
individualRequestStart = start;
@@ -305,7 +292,6 @@ public class TestCoordinatorRole extends SolrCloudTestCase {
now - start,
pullServiceTimeMs,
now - individualRequestStart);
- assertWithinTolerance(pullServiceTimeMs, now - start, 1000);
assertEquals(nrtCore, hostCore);
// allow any exceptions to propagate
jettyManipulationFuture.get();