Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-379

DinnerPartySolveAllTurtleTest fails because of bug in custom phase initializer of that example

XMLWordPrintable

    • NEW
    • NEW

      The DinnerPartySolveAllTurtleTest fails after 7 minutes, since a few weeks, due to a regression in drools. See my mail that I send earlier.

      To reproduce: run DinnerPartySolveAllTurtleTest with vm argument -DrunTurtleTests=true and wait 10 minutes.

      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/Drools%20jBPM/view/Master/job/optaplanner-turtleTests/lastCompletedBuild/testReport/org.optaplanner.examples.dinnerparty.app/DinnerPartySolveAllTurtleTest/runFastAndFullAssert_0__data_dinnerparty_unsolved_wedding01_xml_/

      2015-06-25 11:03:43,828 [main] INFO  Opened: data/dinnerparty/unsolved/wedding01.xml
      2015-06-25 11:03:45,708 [main] INFO  Solving started: time spent (226), best score (uninitialized/-14400), environment mode (NON_INTRUSIVE_FULL_ASSERT), random (JDK with seed 0).
      2015-06-25 11:03:46,885 [main] INFO  Custom phase (0) ended: step total (1), time spent (1403), best score (-2890).
      2015-06-25 11:05:45,486 [main] INFO  Local Search phase (1) ended: step total (44), time spent (120004), best score (-90).
      2015-06-25 11:05:45,486 [main] INFO  Solving ended: time spent (120004), best score (-90), average calculate count per second (480), environment mode (NON_INTRUSIVE_FULL_ASSERT).
      2015-06-25 11:05:45,690 [main] INFO  Solving started: time spent (28), best score (-90), environment mode (FAST_ASSERT), random (JDK with seed 0).
      2015-06-25 11:05:46,317 [main] INFO  Custom phase (0) ended: step total (1), time spent (655), best score (-90).
      2015-06-25 11:10:45,662 [main] INFO  Local Search phase (1) ended: step total (1379), time spent (300000), best score (20).
      2015-06-25 11:10:45,662 [main] INFO  Solving ended: time spent (300000), best score (20), average calculate count per second (11290), environment mode (FAST_ASSERT).
      2015-06-25 11:10:45,812 [main] INFO  Solving started: time spent (30), best score (20), environment mode (NON_INTRUSIVE_FULL_ASSERT), random (JDK with seed 0).
      
      java.lang.IllegalStateException: Score corruption: the workingScore (-1380) is not the uncorruptedScore (-8600) after completedAction (org.optaplanner.examples.dinnerparty.solver.solution.initializer.DinnerPartySolutionInitializer@f2d292):
        The corrupted scoreDirector has 9 ConstraintMatch(s) which are in excess (and should not be there):
          org.optaplanner.examples.dinnerparty.solver/NeighborTable_22/level0/[Alex, Eva]=10
          org.optaplanner.examples.dinnerparty.solver/NeighborTable_22/level0/[Aaron, Eva]=10
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Julia, Jack]=-100
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Joshua, Sadie]=-100
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Eva, Liam]=-100
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Taylor, Tyler]=-100
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Cameron, Penelope]=-100
          org.optaplanner.examples.dinnerparty.solver/leftHasHobbyInCommon/level0/[Camilla, Ethan]=-100
          ... 1 more
        The corrupted scoreDirector has 79 ConstraintMatch(s) which are missing:
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[0, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[2, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[3, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[4, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[5, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[6, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[7, POLITICIAN]=-100
          org.optaplanner.examples.dinnerparty.solver/twoSameJobTypePerTable/level0/[8, POLITICIAN]=-100
          ... 71 more
        Check your score constraints.
      	at org.optaplanner.core.impl.score.director.AbstractScoreDirector.assertWorkingScoreFromScratch(AbstractScoreDirector.java:346)
      	at org.optaplanner.core.impl.solver.scope.DefaultSolverScope.assertWorkingScoreFromScratch(DefaultSolverScope.java:123)
      	at org.optaplanner.core.impl.phase.scope.AbstractPhaseScope.assertWorkingScoreFromScratch(AbstractPhaseScope.java:132)
      	at org.optaplanner.core.impl.phase.custom.DefaultCustomPhase.doStep(DefaultCustomPhase.java:96)
      	at org.optaplanner.core.impl.phase.custom.DefaultCustomPhase.solve(DefaultCustomPhase.java:71)
      	at org.optaplanner.core.impl.solver.DefaultSolver.runPhases(DefaultSolver.java:214)
      	at org.optaplanner.core.impl.solver.DefaultSolver.solve(DefaultSolver.java:176)
      	at org.optaplanner.examples.common.app.SolveAllTurtleTest.buildAndSolve(SolveAllTurtleTest.java:74)
      	at org.optaplanner.examples.common.app.SolveAllTurtleTest.runFastAndFullAssert(SolveAllTurtleTest.java:58)
      

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: