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

NPE when an event expires during evaluation of accumulate when run as fireUntilHalt()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None

      The AccumulateNode.getFirstMatch() throws NPE when some already collected event expires. The problem occurs when thread A is running StatefulKnowledgeSession.fireUntilHalt() while thread B is inserting new events into the session.

      The problem occurs when @expires is defined on the event. The lower the @expires value, the more likely the NPE occurs.

      I added the testEventExpirationDuringAccumulate() to the CepEspTest that reproduces this issue.

            etirelli@redhat.com Edson Tirelli
            mfusco@redhat.com Mario Fusco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: