Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1325824

Summary: OptaPlanner Kie server: Concurrency issue when returning best solution
Product: [Retired] JBoss BRMS Platform 6 Reporter: Karel Suta <ksuta>
Component: Kie-ServerAssignee: Geoffrey De Smet <gdesmet>
Status: CLOSED EOL QA Contact: Karel Suta <ksuta>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0   
Target Milestone: ---   
Target Release: ---   
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:03:21 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 Karel Suta 2016-04-11 10:18:25 UTC
Description of problem:
Retrieving of best solution from Kie server right after starting solver may return best solution with initialized score, but without planning variables assigned to planning entities.
For more info see [1].


Version-Release number of selected component (if applicable):
6.3.0.ER2

How reproducible:
Can be simulated using OptaPlanner integration test [2], test method testGetBestSolution(). This error happens just rarely, best reproducing approach was so far to run mentioned test several times in loop (10-30 times).


Steps to Reproduce:
1.
2.
3.

Actual results:
Best solution is returned with initialized score but without planning variables assigned to planning entities.

Expected results:
If planning variables aren't assigned to planning entities yet then score should be null.

Additional info:

[1] https://issues.jboss.org/browse/PLANNER-564
[2] https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-tests/kie-server-integ-tests-optaplanner/src/test/java/org/kie/server/integrationtests/optaplanner/OptaplannerIntegrationTest.java