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

Regression in incremental compilation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.CR2
    • None
    • core engine
    • None
    • NEW
    • NEW

    Description

      The introduction of the parallel engine has caused a regression in the incremental compilation as evidenced by the org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2 turtle test

      java.lang.AssertionError: Expected results are different than actual after operations:
      1. CREATE_SESSION: [ package com.rules;
       global java.util.List list
       rule R1 
       when 
         Integer()
       then
         list.add('R1'); 
       end,  package com.rules;
       global java.util.List list
       rule R2 
       when 
         $k: Integer()
         ( Integer(this != 1) or Integer(this == 1) )
       then
         list.add('R2'); 
       end]
      2. INSERT_FACTS: [1]
      3. FIRE_RULES
      4. CHECK_RESULTS: [R1, R2]
      5. REMOVE_RULES: [R2]
      6. FIRE_RULES
      7. CHECK_RESULTS: []
      8. REMOVE_RULES: [R1]
      9. FIRE_RULES
      10. CHECK_RESULTS: []
      11. ADD_RULES: [ package com.rules;
       global java.util.List list
       rule R2 
       when 
         $k: Integer()
         ( Integer(this != 1) or Integer(this == 1) )
       then
         list.add('R2'); 
       end]
      12. FIRE_RULES
      Expected results: 
      [R2 ]
      Actual results: 
      []
      
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.checkResults(TestContext.java:210)
      	at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperation(TestContext.java:108)
      	at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperations(TestContext.java:72)
      	at org.drools.compiler.integrationtests.incrementalcompilation.AbstractAddRemoveRulesTest.runAddRemoveTest(AbstractAddRemoveRulesTest.java:110)
      	at org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2(AddRemoveRulesTest.java:2332)
      

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            mfusco@redhat.com Mario Fusco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: