Re: Duplicate function MVEL script

2014-08-28 Thread kd
Ok thanks for the info, we ported the mvel script to groovy and the concurrent operations seem to succeed now :-) On Wednesday, August 27, 2014 4:50:11 PM UTC+2, k...@stylelabs.com wrote: > > Hello > > We are executing some concurrent updates on the same document using an > MVEL script together

Re: Duplicate function MVEL script

2014-08-28 Thread Alex S.V.
The problem with MVEL that you can't redefine defined function in a script instance. Script class instantiates once the query starts, and then it's executing it again and again. MVEL is bad for complex scripting. Yes, you could use groovy,and should :) I found a good way to use it with the next

Re: Duplicate function MVEL script

2014-08-27 Thread Nikolas Everett
I'd port to groovy and try again. MVEL is on its way out and has some stability issues anyway. Like, I really think it has some problems compiling multiple MVEL scripts concurrently. Nik On Wed, Aug 27, 2014 at 10:50 AM, wrote: > Hello > > We are executing some concurrent updates on the same

Duplicate function MVEL script

2014-08-27 Thread kd
Hello We are executing some concurrent updates on the same document using an MVEL script together with some parameters. The MVEL script contains some functions such as "addRelations" etc but there is no sign of duplicate functions. ES throws the following error: [John Kafka][inet[/10.12.1.219