Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1409

Infinite loop when using maps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 6.3.0.Final, 6.4.0.Final, 6.5.0.Final
    • core engine
    • None
    • Windows/Linux /MacOs

    • 2018 Week 39-41
    • 3
    • Hide

      Unzip maven project, run RulesTest unit test.
      Unit test testWithHashMap and testWithConcurrentMap, do the same test 100 times.

      Show
      Unzip maven project, run RulesTest unit test. Unit test testWithHashMap and testWithConcurrentMap, do the same test 100 times.
    • NEW
    • NEW

      Infinite loop when using maps instead collections.
      The problem appears before the 10th iteration, however if you run it 10 times it could end properly without infinite loop.

      We thought it could be linked to the concurrent access to HashMap and we tried with concurrent HashMap but still got the same problem.
      It could be probably linked to the fact that we use maps not only to store the result of some rules evaluation but also as a functional way to prevent rule to be fired again (see rule "FLG1" and the condition "FLG1 not memberof matchMap"
      Thanks.

              mfusco@redhat.com Mario Fusco
              mouachan@redhat.com Mourad Ouachani
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: