Alex Deparvu created SOLR-17014:
-----------------------------------
Summary: Solr Benchmarks are broken
Key: SOLR-17014
URL: https://issues.apache.org/jira/browse/SOLR-17014
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Alex Deparvu
{noformat}
./jmh.sh SimpleSearch
{noformat}
{noformat}
java.lang.RuntimeException: java.lang.IllegalStateException: No context
information for thread: Thread[id=26,
name=org.apache.solr.bench.search.SimpleSearch.query-jmh-worker-11,
state=RUNNABLE, group=main]. Is this thread running under a class
com.carrotsearch.randomizedtesting.RandomizedRunner runner context? Add
@RunWith(class com.carrotsearch.randomizedtesting.RandomizedRunner.class) to
your test class. Make sure your code accesses random contexts within
@BeforeClass and @AfterClass boundary (for example, static test class
initializers are not permitted to access random contexts).
at
org.apache.solr.bench.MiniClusterState$MiniClusterBenchState.startMiniCluster(MiniClusterState.java:274)
at
org.apache.solr.bench.search.SimpleSearch$BenchState.setupTrial(SimpleSearch.java:66)
at
org.apache.solr.bench.search.jmh_generated.SimpleSearch_query_jmhTest._jmh_tryInit_f_benchstate1_G(SimpleSearch_query_jmhTest.java:996)
at
org.apache.solr.bench.search.jmh_generated.SimpleSearch_query_jmhTest.query_Throughput(SimpleSearch_query_jmhTest.java:77)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:527)
at
org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:504)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: No context information for thread:
Thread[id=26,
name=org.apache.solr.bench.search.SimpleSearch.query-jmh-worker-11,
state=RUNNABLE, group=main]. Is this thread running under a class
com.carrotsearch.randomizedtesting.RandomizedRunner runner context? Add
@RunWith(class com.carrotsearch.randomizedtesting.RandomizedRunner.class) to
your test class. Make sure your code accesses random contexts within
@BeforeClass and @AfterClass boundary (for example, static test class
initializers are not permitted to access random contexts).
at
com.carrotsearch.randomizedtesting.RandomizedContext.context(RandomizedContext.java:249)
at
com.carrotsearch.randomizedtesting.RandomizedContext.current(RandomizedContext.java:134)
at
org.apache.lucene.tests.util.LuceneTestCase.random(LuceneTestCase.java:792)
at
org.apache.lucene.tests.util.LuceneTestCase.rarely(LuceneTestCase.java:890)
at
org.apache.solr.cloud.MiniSolrCloudCluster.injectRandomRecordingFlag(MiniSolrCloudCluster.java:1321)
at
org.apache.solr.cloud.MiniSolrCloudCluster$Builder.build(MiniSolrCloudCluster.java:1248)
at
org.apache.solr.cloud.MiniSolrCloudCluster$Builder.configure(MiniSolrCloudCluster.java:1218)
at
org.apache.solr.bench.MiniClusterState$MiniClusterBenchState.startMiniCluster(MiniClusterState.java:265)
... 15 more
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]