Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16067

JMH benchmarks from the raft module do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha4
    • None

    Description

      When running a JMH benchmark in IDEA from the raft module (e.g. SingleThreadExecutorBenchmark) the following error appears:

      Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList
      	at org.openjdk.jmh.runner.AbstractResourceReader.getReaders(AbstractResourceReader.java:97)
      	at org.openjdk.jmh.runner.BenchmarkList.find(BenchmarkList.java:103)
      	at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:256)
      	at org.openjdk.jmh.runner.Runner.run(Runner.java:206)
      	at org.apache.ignite.raft.jraft.util.concurrent.SingleThreadExecutorBenchmark.main(SingleThreadExecutorBenchmark.java:85)
      

      Supposed cause

      The maven-compiler-plugin in this module is configured to use a custom annotation processor which automatically disables other annotation processors, including the one from JMH. It should be manually enabled.

      Attachments

        Issue Links

          Activity

            People

              apolovtcev Aleksandr Polovtsev
              apolovtcev Aleksandr Polovtsev
              Ivan Bessonov Ivan Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 50m
                  50m