Bug 1197784
Summary: | Optaplanner sometimes ignores different scoreDefinitionType and runs anyway. | ||
---|---|---|---|
Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | jvahala |
Component: | OptaPlanner | Assignee: | Geoffrey De Smet <gdesmet> |
Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1.0 | CC: | kverlaen, lpetrovi |
Target Milestone: | DR1 | ||
Target Release: | 6.2.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:05:20 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: |
Description
jvahala
2015-03-02 15:38:49 UTC
Interesting case. BruteForce doesn't need the ScoreDefinition, so it's the Solution<FooScore> and ScoreCalculator<FooScore>'s score type that is used (and they must match). Nevertheless, this should fail fast of course, so I am fixing it. Note: If a Drools score calculator is used, the wrong scoreDefinition does fail fast due to clashing with the score holder in the DRL. Fixed on master: https://github.com/droolsjbpm/optaplanner/commit/611a9d1e493262590a76a8581fde2b95e1a15b51 https://github.com/droolsjbpm/optaplanner/commit/e841f44dfa452bce531030490f6c24622aa23830 https://github.com/droolsjbpm/optaplanner/commit/03bf731f9e1c2afe015155c29bb70533c4fe42a5 Not backported to 6.2.x because blocker tag is missing (and I don't think it's needed) Verified. (as we discussed earlier that fixing this consistency breaks backward compatibility) |