Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-15819 spurious failures from TestCircuitBreaker.testResponseWithCBTiming (#1756)

Alexfb2a06bf3636
diff --git a/solr/core/src/test/org/apache/solr/util/TestCircuitBreaker.java b/solr/core/src/test/org/apache/solr/util/TestCircuitBreaker.java
index c9fe19be273..47c8d417c07 100644
--- a/solr/core/src/test/org/apache/solr/util/TestCircuitBreaker.java
+++ b/solr/core/src/test/org/apache/solr/util/TestCircuitBreaker.java
@@ -27,7 +27,6 @@ import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.common.SolrException;
-import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.util.ExecutorUtil;
import org.apache.solr.common.util.SolrNamedThreadFactory;
import org.apache.solr.core.PluginInfo;
@@ -216,28 +215,6 @@ public class TestCircuitBreaker extends SolrTestCaseJ4 {
}
}
- public void testResponseWithCBTiming() {
- assertQ(
- req("q", "*:*", CommonParams.DEBUG_QUERY, "true"),
- "//str[@name='rawquerystring']='*:*'",
- "//str[@name='querystring']='*:*'",
- "//str[@name='parsedquery']='MatchAllDocsQuery(*:*)'",
- "//str[@name='parsedquery_toString']='*:*'",
- "count(//lst[@name='explain']/*)=3",
- "//lst[@name='explain']/str[@name='1']",
- "//lst[@name='explain']/str[@name='2']",
- "//lst[@name='explain']/str[@name='3']",
- "//str[@name='QParser']",
- "count(//lst[@name='timing']/*)=4",
- "//lst[@name='timing']/double[@name='time']",
- "count(//lst[@name='circuitbreaker']/*)>0",
- "//lst[@name='circuitbreaker']/double[@name='time']",
- "count(//lst[@name='prepare']/*)>0",
- "//lst[@name='prepare']/double[@name='time']",
- "count(//lst[@name='process']/*)>0",
- "//lst[@name='process']/double[@name='time']");
- }
-
private void removeAllExistingCircuitBreakers() {
List<CircuitBreaker> registeredCircuitBreakers =
h.getCore().getCircuitBreakerManager().getRegisteredCircuitBreakers();