Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- links to