Re: Precommit hook function - no error log - how to debug?

2016-05-17 Thread Sanket Agrawal
orkaround indicates an > environment-specific issue and not (at this point) a bug in Riak. I am > working to get to the root cause (pun intended) > > > > Thanks, > > Luke > > lbak...@basho.com > > > > On May 17, 2016 10:54 AM, "Sanket Agrawal&qu

Re: Precommit hook function - no error log - how to debug?

2016-05-17 Thread Sanket Agrawal
example, Postgresql runs fine as non-root user. On Mon, May 16, 2016 at 1:42 PM, Sanket Agrawal wrote: > Luke, just tested and confirmed that precommit hooks are still not > triggered for normal buckets. Objects get written but precommit hooks don't > trigger. Manually simulatin

Re: Precommit hook function - no error log - how to debug?

2016-05-16 Thread Sanket Agrawal
issues/2076 > > -- > Luke Bakken > Engineer > lbak...@basho.com > > > On Mon, May 16, 2016 at 8:20 AM, Sanket Agrawal > wrote: > > Shouldn't precommit body show up in cluster-info first before we try to > test > > it with an object? I just set the pr

Re: Precommit hook function - no error log - how to debug?

2016-05-16 Thread Sanket Agrawal
{*precommit*,[]}, > {*precommit*,[]}, > {*precommit*,[]}, > {*precommit*,[]}, > {*precommit*,[]}, On Mon, May 16, 2016 at 10:48 AM, Luke Bakken wrote: > Hi Sanket, > > Thanks for providing that information, this is the first time tha

Re: Precommit hook function - no error log - how to debug?

2016-05-13 Thread Sanket Agrawal
; > is significant: > > > > redbug:start(60, 10, "precommit:pre_uuid/1->return"). > > > > If you run the above redbug statement on all nodes, you should see one > > or more outputs showing that it was called. You can confirm that > > red

Re: Precommit hook function - no error log - how to debug?

2016-05-11 Thread Sanket Agrawal
> -- > Luke Bakken > Engineer > lbak...@basho.com > > > On Wed, May 11, 2016 at 12:12 PM, Sanket Agrawal > wrote: > > Yep, I can always load the module in question in riak console fine. I did > > all my testing in riak console, before trying to turn on precommit

Re: Precommit hook function - no error log - how to debug?

2016-05-11 Thread Sanket Agrawal
er, as you're the first person (that we know of) since >>> 2012 that has tried to turn it on and noticed this bug. >>> >>> Doug >>> >>> On Wed, May 11, 2016 at 10:14 AM Luke Bakken wrote: >>> >>>> Hi Sanket - >>>> >>>&g

Re: Precommit hook function - no error log - how to debug?

2016-05-11 Thread Sanket Agrawal
since > 2012 that has tried to turn it on and noticed this bug. > > Doug > > On Wed, May 11, 2016 at 10:14 AM Luke Bakken wrote: > >> Hi Sanket - >> >> I'd like to confirm some details. Is this a one-node cluster? Did you >> install an official pack

Re: Precommit hook function - no error log - how to debug?

2016-05-11 Thread Sanket Agrawal
source? > > Thanks - > -- > Luke Bakken > Engineer > lbak...@basho.com > > > On Tue, May 10, 2016 at 6:49 PM, Sanket Agrawal > wrote: > > One more thing - I set up the hooks by bucket, not bucket type. The > > documentation for 2.1.4 says that hooks are

Re: Precommit hook function - no error log - how to debug?

2016-05-10 Thread Sanket Agrawal
27;Content-Type: application/json' -d '{ "props": { "precommit": [{"mod": "precommit", "fun": "pre_uuid"}]}}' -v On Tue, May 10, 2016 at 9:15 PM, Sanket Agrawal wrote: > I just set up a precommit hook function in dev

Precommit hook function - no error log - how to debug?

2016-05-10 Thread Sanket Agrawal
I just set up a precommit hook function in dev environment (KV 2.1.4) which doesn't seem to be triggering off at all. The object is being stored in the bucket, but the precommit logic is not kicking off. I checked couple of things as listed below but came up with no error - so, it is a head-scratch

Re: How to increase Riak write performance for sequential alpha-numeric keys

2016-05-05 Thread Sanket Agrawal
On Thu, May 5, 2016 at 9:28 AM, Russell Brown wrote: > CRDTs are all about mutation, why would you use a CRDT for immutable data? > I think write-once is what you need. No particular reason - most likely ignorance on my part, I think :) Basho documentation mentioned modeling the data as CRDT if

Re: How to increase Riak write performance for sequential alpha-numeric keys

2016-05-05 Thread Sanket Agrawal
Two questions about write-once bucket: - is it useful from performance-perspective for immutable CRDTs as well? - If the objects are immutable, is map CRDT generally performant, compared to equivalent JSON with write-once property? Let us say map has 1-9 registers with about 2KB size total in strin

Getting key of the map in erlang

2016-04-28 Thread Sanket Agrawal
Not sure if this has been asked before - given a map, how does one go about retrieving the key of the map? For example, in Riak example for map , a map is created with "ahmed_info" key. If we were to write a commit hook in Erlang wh