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 PM, Mav erick <mav4...@gmail.com> wrote:
> 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)
> test-bucket-type (active)
> sets (active)
> maps (active)
> counters (active)
>
> I made sure the hooks are applied
> Also note there is **no** data type associated
> {
>   "props": {
>     "active": true,
>     "allow_mult": true,
>     "basic_quorum": false,
>     "big_vclock": 50,
>     "chash_keyfun": {
>       "fun": "chash_std_keyfun",
>       "mod": "riak_core_util"
>     },
>     "claimant": "riak@10.243.44.165",
>     "dvv_enabled": true,
>     "dw": "quorum",
>     "last_write_wins": false,
>     "linkfun": {
>       "fun": "mapreduce_linkfun",
>       "mod": "riak_kv_wm_link_walker"
>     },
>     "n_val": 3,
>     "notfound_ok": true,
>     "old_vclock": 86400,
>     "postcommit": [],
>     "pr": 0,
>     "precommit": [
>       {
>         "fun": "precommit_hook",
>         "mod": "commit_hooks"
>       }
>     ],
>     "pw": 0,
>     "r": "quorum",
>     "rw": "quorum",
>     "small_vclock": 50,
>     "w": "quorum",
>     "young_vclock": 20
>   }
> }
>
> curl -4vvv -H 'Content-Type: text/plain'
> localhost:8098/types/test-bucket-type/buckets/test-bucket/keys/test-key -d
> "THIS IS THE DATA FOR TEST-KEY"

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

Reply via email to