Re: Initializing a commit hook

2016-11-19 Thread Luke Bakken
Hi Mav, I opened the following issue to continue investigation: https://github.com/basho/riak_kv/issues/1541 That would be the best place to continue discussion. I'll find time to reproduce what you have reported. Thanks - -- Luke Bakken Engineer lbak...@basho.com On Fri, Nov 18, 2016 at 4:57

Re: Initializing a commit hook

2016-11-18 Thread Mav erick
No luck :( I set up a bucket type called test-bucket-type. I did NOT set data type. I set the hooks Ran your curl -X PUT. The Hook was not called. Tried several times, no luck I changed the curl to hit my non-typed bucket, and the commit hook hit $ riak-admin bucket-type list default (active) tes

Re: Initializing a commit hook

2016-11-18 Thread Luke Bakken
Thanks for correcting that. Everything looks set up correctly. How are you saving objects? If you're using HTTP, what is the URL? Can you associate your precommit hook with a bucket type ("test-bucket-type" below) that is *not* set up for the "map" data type and see if your hook is called correct

Re: Initializing a commit hook

2016-11-18 Thread Mav erick
Here you go ... For the second url - I think you meant testbucket without the hyphen, Also I think you have an extra "props" in there * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8098 (#0) > GET /types/maps/props HTTP/1.1 > User-Agent

Re: Initializing a commit hook

2016-11-18 Thread Luke Bakken
What is the output of these commands? curl -4vvv localhost:8098/types/maps/props curl -4vvv localhost:8098/types/maps/props/buckets/test-bucket/props On Fri, Nov 18, 2016 at 2:21 PM, Mav erick wrote: > Luke > > I was able to change the properties with your URL, but still the hooks are > not bei

Re: Initializing a commit hook

2016-11-18 Thread Luke Bakken
riak-users list can >> learn from what you find out. Thanks. >> >> Thebucket = riak_object:bucket(Object), >> >> Can you check to see if "Thebucket" is really a two-tuple of >> "{BucketType, Bucket}"? I believe that is what is returned. >

Re: Initializing a commit hook

2016-11-18 Thread Mav erick
nnecting to a notification > server, > > before I can use the commit hook. But I think I have figured that out now > > that I learnt about supervisors and OTP > > > > I have one other question though ... > > How do I get the bucket type of the bucket of the key that was comm

Re: Initializing a commit hook

2016-11-18 Thread Luke Bakken
ect:bucket(Object), > Thekey = riak_object:key(Object), > > Thanks ! > > On 18 November 2016 at 12:14, Luke Bakken wrote: >> >> Mav - >> >> Can you go into more detail? The subject of your message is >> "initializing a commit hook". &

Re: Initializing a commit hook

2016-11-18 Thread Luke Bakken
Mav - Can you go into more detail? The subject of your message is "initializing a commit hook". -- Luke Bakken Engineer lbak...@basho.com On Thu, Nov 17, 2016 at 9:09 AM, Mav erick wrote: > Folks > > Is there way RIAK can call an erlang function in a module when RIAK start

Initializing a commit hook

2016-11-17 Thread Mav erick
Folks Is there way RIAK can call an erlang function in a module when RIAK starts up ? Thanks Mav ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com