Bug 1113090
| Summary: | NPE when ParallelBenchmarkCount is higher than availableProcessorCount. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | jvahala | ||||
| Component: | OptaPlanner | Assignee: | Geoffrey De Smet <gdesmet> | ||||
| Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0.2 | CC: | kverlaen, lpetrovi | ||||
| Target Milestone: | DR2 | ||||||
| Target Release: | 6.1.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-03-27 19:08:30 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
jvahala
2014-06-25 12:25:09 UTC
Created attachment 913396 [details]
failConfig
my CPU have 2(4) cores, so <parallelBenchmarkCount>10</parallelBenchmarkCount> is enough for throwing NPE
as addition: java.lang.NullPointerException: null at org.optaplanner.benchmark.config.PlannerBenchmarkConfig.resolveParallelBenchmarkCount(PlannerBenchmarkConfig.java:379) at org.optaplanner.benchmark.config.PlannerBenchmarkConfig.buildPlannerBenchmark(PlannerBenchmarkConfig.java:210) Nice catch! Fixed on master for community 6.2.0.Beta2 (and production tags are coming from master currently, so you should get it with the next tag). https://github.com/droolsjbpm/optaplanner/commit/1ea94837b13c2402d748c50a7d2366b6d528b1fa Similar issue for the score config was fixed in the same commit. The log now nicely warns and the benchmark continues: 2014-07-22 17:55:06,660 [main] WARN Because the resolvedParallelBenchmarkCount (9) is higher than the availableProcessorCount (4), it is reduced to availableProcessorCount. ... Verified. |