[jboss-jira] [JBoss JIRA] (DROOLS-1372) Each call to KieContainer.updateToVersion(ReleaseId version) creates a new classloader for unmodifed rules in the KieModule

Bill Tuminaro (JIRA) issues at jboss.org
Mon Nov 28 19:08:00 EST 2016


     [ https://issues.jboss.org/browse/DROOLS-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Tuminaro updated DROOLS-1372:
----------------------------------
           Description: 
I have attached a reproducer named UpdateToVersionCreatingNewClassloaders.java that creates a KieContainer with a KieModule that contains a single rule (rule name 1081) and then runs a loop that adds 1 rule and removes 1 rule and calls KieContainer.updateToVersion().  Along the way it creates .dmp files.

If you examine the .dmp files name updrule#_3.dmp (i.e. updrule1_3.dmp , updrule3_3.dmp ) you will see that the number of classloaders for the rule named org.drools.compiler.integrationTests.Rule_10810DefaultConsequenceInvoker increases by 1 each iteration.



  was:
I have attached a reproducer named UpdateToVersionCreatingNewClassloaders.java that creates a KieContainer with a KieModule that contains a single rule (rule name 1081) and then runs a loop that adds 1 rule and removes 1 rule and calls KieContainer.updateToVersion().  Along the way it creates .dmp files.

If you examine the .dmp files name updrule#_3.drl (i.e. updrule1_3.drl , updrule3_3.drl ) you will see that the number of classloaders for the rule named org.drools.compiler.integrationTests.Rule_10810DefaultConsequenceInvoker increases by 1 each iteration.



    Steps to Reproduce: Run the attached reproducer and examine the  updrule#_3.dmp (i.e. updrule1_3.dmp , updrule3_3.dmp )  files that are created. Notice the number org.drools.compiler.integrationTests.Rule_10810DefaultConsequenceInvoker classloaders is increasing.  (was: Run the attached reproducer and examine the  updrule#_3.drl (i.e. updrule1_3.drl , updrule3_3.drl )  files that are created. Notice the number org.drools.compiler.integrationTests.Rule_10810DefaultConsequenceInvoker classloaders is increasing.)


> Each call to KieContainer.updateToVersion(ReleaseId version)  creates a new classloader for unmodifed rules in the KieModule
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1372
>                 URL: https://issues.jboss.org/browse/DROOLS-1372
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.3.0.Final
>            Reporter: Bill Tuminaro
>            Assignee: Mario Fusco
>         Attachments: UpdateToVersionCreatingNewClassloaders.java, drools-1372_one.PNG, drools-1372_two.PNG
>
>
> I have attached a reproducer named UpdateToVersionCreatingNewClassloaders.java that creates a KieContainer with a KieModule that contains a single rule (rule name 1081) and then runs a loop that adds 1 rule and removes 1 rule and calls KieContainer.updateToVersion().  Along the way it creates .dmp files.
> If you examine the .dmp files name updrule#_3.dmp (i.e. updrule1_3.dmp , updrule3_3.dmp ) you will see that the number of classloaders for the rule named org.drools.compiler.integrationTests.Rule_10810DefaultConsequenceInvoker increases by 1 each iteration.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list