Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17014

Solr Benchmarks are broken due to tracing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.4
    • main (10.0), 9.4
    • benchmarks
    • None

    Description

      ./jmh.sh SimpleSearch
      
      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
      

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m