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

Score corruption analysis assumes constraint matches are unique

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.8.0.Final
    • 8.7.0.Final
    • optaplanner-core
    • None
    • 2021 Week 19-21 (from May 10)
    • 3
    • Undefined
    • NEW
    • NEW

    Description

      Ever since mapping and flattening were introduced to Constraint Streams, constraint matches are no longer unique. (A constraint stream may produce two distinct tuples which are equal in contents.) Unfortunately, the score analysis still assumes that every tuple has different contents.

      This manifests in the following situation:

      • A constraint provider includes a constraint with duplicate tuples.
      • At the same time, the constraint provider triggers a score corruption in another unrelated constraint.
      • FULL_ASSERT is enabled.

      In this case, score corruption analysis will give a misleading message, pointing to duplicate constraint matches being inserted twice. This is a false positive, and the actual message should be pointing towards the score corruption in the second constraint.

      Attachments

        Activity

          People

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: