Skip to content

Instantly share code, notes, and snippets.

@hellowdan
Created April 7, 2020 09:07
Show Gist options
  • Save hellowdan/fc7b2b3273a19b56e1c1ae44a329b739 to your computer and use it in GitHub Desktop.
Save hellowdan/fc7b2b3273a19b56e1c1ae44a329b739 to your computer and use it in GitHub Desktop.
benchmark random failure
10:44:25.367 [org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring-jmh-worker-1] ERROR org.drools.compiler.kie.builder.impl.KieProject - Unable to build KieBaseModel:defaultKieBase
Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... odel.Address.class); ....}]
^
[Line: 583, Column: 0] '$addr.city = "BrnoCity";
update($addr); // this invalidates previous rule and thus all the LogicalFacts should be retracted
' : [Rule name='Set city for each Address_94']
<failure>
java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=turtle/expert-basic-insert-logical-facts-into-wm-1000.drl, line=583, column=0
text=Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... odel.Address.class); ....}]
^
[Line: 583, Column: 0] '$addr.city = "BrnoCity";
update($addr); // this invalidates previous rule and thus all the LogicalFacts should be retracted
']]
at org.kie.internal.utils.KieHelper.getKieContainer(KieHelper.java:87)
at org.kie.internal.utils.KieHelper.build(KieHelper.java:71)
at org.drools.benchmarks.turtle.runtime.AbstractSimpleRuntimeBenchmark.createKBase(AbstractSimpleRuntimeBenchmark.java:86)
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest._jmh_tryInit_f_insertlogicalfactsintowmexpertbenchmark0_0(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:346)
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.timeFactsInsertionAndRulesFiring_SingleShotTime(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:453)
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:437)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Benchmark had encountered error, and fail on error was requested
ERROR: org.openjdk.jmh.runner.RunnerException: Benchmark caught the exception
at org.openjdk.jmh.runner.Runner.runBenchmarks(Runner.java:578)
at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:320)
at org.openjdk.jmh.runner.Runner.run(Runner.java:209)
at org.openjdk.jmh.Main.main(Main.java:71)
Caused by: org.openjdk.jmh.runner.BenchmarkException: Benchmark error during the run
at org.openjdk.jmh.runner.BenchmarkHandler.runIteration(BenchmarkHandler.java:428)
at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:262)
at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:234)
at org.openjdk.jmh.runner.BaseRunner.doSingle(BaseRunner.java:139)
at org.openjdk.jmh.runner.BaseRunner.runBenchmarksForked(BaseRunner.java:76)
at org.openjdk.jmh.runner.ForkedRunner.run(ForkedRunner.java:72)
at org.openjdk.jmh.runner.ForkedMain.main(ForkedMain.java:84)
Suppressed: java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=turtle/expert-basic-insert-logical-facts-into-wm-1000.drl, line=583, column=0
text=Unable to build expression for 'consequence': [Error: unexpected end of statement]
[Near : {... odel.Address.class); ....}]
^
[Line: 583, Column: 0] '$addr.city = "BrnoCity";
update($addr); // this invalidates previous rule and thus all the LogicalFacts should be retracted
']]
at org.kie.internal.utils.KieHelper.getKieContainer(KieHelper.java:87)
at org.kie.internal.utils.KieHelper.build(KieHelper.java:71)
at org.drools.benchmarks.turtle.runtime.AbstractSimpleRuntimeBenchmark.createKBase(AbstractSimpleRuntimeBenchmark.java:86)
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest._jmh_tryInit_f_insertlogicalfactsintowmexpertbenchmark0_0(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:346)
at org.drools.benchmarks.turtle.runtime.generated.InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.timeFactsInsertionAndRulesFiring_SingleShotTime(InsertLogicalFactsIntoWmExpertBenchmark_timeFactsInsertionAndRulesFiring_jmhTest.java:297)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:453)
at org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:437)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[drosa@localhost kie-benchmarks]$ java -jar ./drools-benchmarks/target/drools-benchmarks.jar -jvmArgs "-Xms6144m -Xmx6144m -Djmh.ignoreLock=true" -foe true -rf csv -rff results.csv org.drools.benchmarks.turtle.runtime.InsertLogicalFactsIntoWmExpertBenchmark.timeFactsInsertionAndRulesFiring*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment