The combination of allow_mult: true and the precommit "riak_search_kv_hook"
is the issue.  But this is only true if its set in the default props.

Search and conflict resolution can work together, but apparently search
creates hidden buckets behind the scenes that go off the default bucket
properties specified in app.config.

So if those buckets have allow_mult, there will be there problem.

So basically, if you have search enabled, you need to have allow_mult =
false as the default.

You can enable allow_mult = true on individual buckets, in an ad hoc manner.

This isn't to say that search and conflict resolution is incompatible, it
just means that allow_mult must be set dynamically in that case.

On Wed, Mar 13, 2013 at 7:22 PM, Kevin Burton <[email protected]>wrote:

> Thanks again.  You solved it!!. I am not sure how the bucket properties
> were set in this way but I changed back to the default and it works again.
> The key property in this case was ‘precommit’. Now that this property is
> suspect can we offer an explanation? I have highlighted the changed
> properties and the one that certainly jumped out is ‘precommit’. How does
> that get set? What are the conditions that setting it in this way would
> case such an error?****
>
> ** **
>
> Here are the original bucket properties:****
>
> ** **
>
> {****
>
>         "props" : {****
>
>                 "allow_mult" : true,****
>
>                 "basic_quorum" : false,****
>
>                 "big_vclock" : 50,****
>
>                 "chash_keyfun" : {****
>
>                         "mod" : "riak_core_util",****
>
>                         "fun" : "chash_std_keyfun"****
>
>                 },****
>
>                 "dw" : "quorum",****
>
>                 "last_write_wins" : false,****
>
>                 "linkfun" : {****
>
>                         "mod" : "riak_kv_wm_link_walker",****
>
>                         "fun" : "mapreduce_linkfun"****
>
>                 },****
>
>                 "n_val" : 4,****
>
>                 "name" : "buyseasons-orders",****
>
>                 "notfound_ok" : true,****
>
>                 "old_vclock" : 86400,****
>
>                 "postcommit" : [ ],****
>
>                 "pr" : 0,****
>
>                 "precommit" : [****
>
>                         {****
>
>                                 "mod" : "riak_search_kv_hook",****
>
>                                 "fun" : "precommit"****
>
>                         }****
>
>                 ],****
>
>                 "pw" : 0,****
>
>                 "r" : "quorum",****
>
>                 "rw" : "quorum",****
>
>                 "search" : true,****
>
>                 "small_vclock" : 50,****
>
>                 "w" : "all",****
>
>                 "young_vclock" : 20****
>
>         }****
>
> }****
>
> * Connection #0 to host devUbuntu01 left intact****
>
> * Closing connection #0****
>
> ** **
>
> After the reset:****
>
> ** **
>
> {****
>
>         "props" : {****
>
>                 "name" : "buyseasons-orders",****
>
>                 "allow_mult" : false,****
>
>                 "basic_quorum" : false,****
>
>                 "big_vclock" : 50,****
>
>                 "chash_keyfun" : {****
>
>                         "mod" : "riak_core_util",****
>
>                         "fun" : "chash_std_keyfun"****
>
>                 },****
>
>                 "dw" : "quorum",****
>
>                 "last_write_wins" : false,****
>
>                 "linkfun" : {****
>
>                         "mod" : "riak_kv_wm_link_walker",****
>
>                         "fun" : "mapreduce_linkfun"****
>
>                 },****
>
>                 "n_val" : 3,****
>
>                 "notfound_ok" : true,****
>
>                 "old_vclock" : 86400,****
>
>                 "postcommit" : [ ],****
>
>                 "pr" : 0,****
>
>                 "precommit" : [ ],****
>
>                 "pw" : 0,****
>
>                 "r" : "quorum",****
>
>                 "rw" : "quorum",****
>
>                 "small_vclock" : 50,****
>
>                 "w" : "quorum",****
>
>                 "young_vclock" : 20****
>
>         }****
>
> }****
>
> * Connection #0 to host devUbuntu01 left intact****
>
> * Closing connection #0****
>
> ** **
>
> ** **
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to