Drools migration from 5.1.0 to latest stable

225 views
Skip to first unread message

techj...@gmail.com

unread,
Jul 13, 2015, 9:27:53 AM7/13/15
to drools...@googlegroups.com
Colleagues,

I am working on a big enterprise project, that uses Drools for business logic validation. We have 500+ drools, the initial Drools version is 5.1.0, java 1.6.
Currently, we are trying to migrate to Java 7. I have managed to migrate about a half of the drools to java 7 and Drools 5.5.0 Final, but I am still getting java runtime errors from some drools and it is very painful to fix them one-by-one, because application is rather heavy and not all drools are covered with tests.
The final goal is to migrate all drools to the latest most stable version (for example 6.1.0 Final.)
Could you, please, help me to find out, if there is any utility, that can help me to migrate the existing drools, check their compatibility with the latest Drools version and fix all the possible errors without running my project and trying to hit all the drools.

Thank you,
Sergii.

Mark Proctor

unread,
Jul 13, 2015, 11:45:20 AM7/13/15
to drools...@googlegroups.com
There should be no breaking changes between 5.1.0 and 5.5.0. If you are finding them, it is likely a bug. 

Mark
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/c8a422e6-23c8-441f-8b3f-28b9490c0c99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

techj...@gmail.com

unread,
Jul 13, 2015, 11:57:11 AM7/13/15
to drools...@googlegroups.com
Agree, seems like I am facing bugs caused by the lack of a strict validation. But once again - the goal is to move to 6.1.0 or 6.2.0. So where is a lot of work ahead and I need some kind of drl files validator.

hanbing luo

unread,
Jul 14, 2015, 5:13:03 AM7/14/15
to drools...@googlegroups.com
 
We have almost done migration from drools 5.1.1 to 6.2.0.Final. So I want to share with you some points.

1) First step need migrate rules in 5.1 to 6.2.

Use this tool drools-wb-jcr2vfs-distribution-6.2.0.Final and it has some minor bug. Please refer this post.

2) We find some potential issue when we do A/B test.

From our test, performance time is not good than 5.1. Drools_time is about 1-5 ms for 5.1 and it is almost 5-10 ms for drools 6.2(not including first several requests from 50+ms,40+ms,30+ms to less than 10 ms).
// TODO we don't have enough info now


Is this a bug of class meta info load in 6.2.0.Final?

In drools 6.2 is it possible to change String == evaluators?

3) We found some issue happened in 6.2 and we don't have enough time to address root cause and submit to Drools team. We don't know whether it is related with our rules or code because we see it in our system but can't reproduce it when I try to create clean sample rules.
For example, two rules with same rule flow group and activation group but with different salience. Design idea is simple high salience rule is fired and another rule is not fired due to activation group.
a) In some case both two rules are fired in 6.2.0.Final version.
b) In some rare case of drools 5.1.1, low salience rule is fired but high salience rule is not fired. We are focusing in this prod issue.

Thanks

Mark Proctor

unread,
Jul 14, 2015, 7:56:46 AM7/14/15
to drools...@googlegroups.com


On Monday, 13 July 2015, <techj...@gmail.com> wrote:
Agree, seems like I am facing bugs caused by the lack of a strict validation. 
Yes, we tightened things up, as we found some places was not enforcing type safety.
 
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/779fad7b-a8a1-4650-a19d-f260d26f73e7%40googlegroups.com.

techj...@gmail.com

unread,
Jul 14, 2015, 9:03:16 AM7/14/15
to drools...@googlegroups.com
Thank you. It is very helpful.

manjunath

unread,
Aug 26, 2015, 4:30:11 AM8/26/15
to Drools Usage
Hi All..

We have migrated from Drools 5.2 to 6.1 and the performance time has been increased by 50 percent... i just wanted to know if it is code's fault or drools version's... can you please suggest something

Mario Fusco

unread,
Aug 26, 2015, 8:11:22 AM8/26/15
to Drools Usage
We have migrated from Drools 5.2 to 6.1 and the performance time has been increased by 50 percent... i just wanted to know if it is code's fault or drools version's... can you please suggest something

It's impossible to verify a claim like "performance time has been increased by 50%" without the possibility of giving a look at your rules or even better running a reproducer. Can you provide one?

Thanks,
Mario

 

Carlos Rodriguez Fernandez

unread,
Sep 23, 2015, 6:24:05 PM9/23/15
to Drools Usage
The same problem here. 6.2.0.Final ignores the activation-group with salience, 6.1.0 works fine.

This is happening with StatelessKieSession. I haven't verified this with Stateful sessions.

Mark Proctor

unread,
Sep 23, 2015, 6:37:53 PM9/23/15
to drools...@googlegroups.com
There are some fixes here, can you try 6.3.CR2 please.

If the bug remains, please try and create a self contained unit test, and submit as a pull request.

-- 
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages