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

Score corruption in RockTour example

    XMLWordPrintable

Details

    Description

      Occurs when running RockTourPerformanceTest with moveThreadCount > 1.

      Caused by: java.lang.IllegalStateException: VariableListener corruption: the entity (Augusta, Maine)'s shadow variable (RockShow.date)'s corrupted value (2018-03-20) changed to uncorrupted value (2018-03-22) after all VariableListeners were triggered without changes to the genuine variables.
      Maybe the VariableListener class (RockShowVariableListener) for that shadow variable (RockShow.date) forgot to update it when one of its sources changed after completedAction (Undo([Columbia, South Carolina..Madison, Wisconsin] {Pierre, South Dakota -reversing-> Austin, Texas})).
              at org.optaplanner.core.impl.score.director.AbstractScoreDirector.assertShadowVariablesAreNotStale(AbstractScoreDirector.java:552)
              at org.optaplanner.core.impl.score.director.AbstractScoreDirector.assertExpectedUndoMoveScore(AbstractScoreDirector.java:604)
      
      

      Attachments

        Issue Links

          Activity

            People

              rsynek@redhat.com Radovan Synek
              rsynek@redhat.com Radovan Synek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: