On Sep 20, 2010, at 12:07 PM, francisco treacy wrote:

<snip>

> 
>> 2) How are you reloading new Javascript functions? 'riak-admin js_reload' 
>> should cause all the Javascript VMs to restart and start from a clean slate. 
>> If that's not working correctly I'd be very interested in knowing that so I 
>> can fix it before our next release.
> 
> Good point, I am *not* using named functions so I imagine `riak-admin
> js_reload` does not apply to my case (or does it - I never triggered
> it)?  Every job I submit is comprised of anonymous functions (except
> Riak built-ins, that is) -- I am developing plenty of ad-hoc queries
> to be run once in a while on our production data.

js_reload will force a reload of all the Javascript VMs. This will dump all 
state, including any accumulated anonymous functions. We do cache anonymous 
functions to reduce the number of JS calls we have to make but it's possible 
there's a bug in the change detection logic. I will take a look in that code 
and see if we're doing anything obviously wrong. What version of Riak are you 
using?

--Kevin



_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to