-
Bug
-
Resolution: Done
-
Major
-
None
-
6.4.0.CR2
-
NEW
-
NEW
Retrieving of best solution from Kie server right after starting solver returns best solution with initialized score, but without planning variables assigned to planning entities.
After deeper analysis I found out that this is concurrency issue (chronologically):
(Thread 1)When Solver is starting it first set best solution same as planning problem.
(Thread 2)Kie server receives request for getting best solution, retrieve best solution from Solver, find out that it isn't yet initialized so Kie server set score of best solution to null.
(Thread 1)Solver runs the startSolving event where it initialize best score of solution to default value - for example 0hard/0soft for HardSoftScore.
""in this moment there is rewritten score attribute of best solution in Kie server as both threads hold same reference""
(Thread 2)Kie server marshall messed up best solution and send it.
- is caused by
-
PLANNER-405 Score should keep track of the uninitialized variable count
- Resolved
- is cloned by
-
RHDM-86 Concurrency issue when retrieving unitialized best solution
- Closed
- is incorporated by
-
RHDM-46 OptaPlanner Kie server: Cannot marshall best solution score
- Closed
- is related to
-
PLANNER-565 JAXB Score binding: ScoreXmlAdapter
- Resolved
- relates to
-
PLANNER-560 The score of the bestSolution is set before it is (fully) initialized, but from Solver.getBestSolution() it's not detectable that it's not yet initialized
- Resolved