Hi Ciprian
Thanks for that info, helps a lot. That was my suspicion about 2i and
primary partitions.
I reproduced it with 4 riak nodes, stopping 2 of them and executing 2i
query.
Since placement of partitions is "random", does it mean I can have max one
node offline to be able to run 2i successfully?
In my original case nodes 4 and 5 were down.
Daniel
On 7 March 2014 15:08, Ciprian Manea [via Riak Users] <
ml-node+s197444n4030631...@n3.nabble.com> wrote:
> Hi Daniel,
>
> Secondary index queries need at least 1/n_val primary partitions to be
> available before it could run successfully and Riak would return
> {error,insufficient_vnodes_available} while the required primary
> partitions are coming up.
>
> I would suggest defensive programming (retrying the 2i queries on error)
> as a way to mitigate this.
>
>
> Thanks,
> Ciprian
>
>
> On Wed, Mar 5, 2014 at 11:06 PM, Daniel Iwan <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=4030631&i=0>
> > wrote:
>
>> Thanks Ciprian
>>
>> We already have wait-for-service in our script and it looks like it's not
>> a
>> sufficient condition to satisfy secondary index query.
>> How long application should wait before starting querying Riak using 2i?
>> Should we do riak-admin transfers to make sure there are no vnode
>> transfers
>> happening?
>>
>> I'm trying to figure it out what {error,insufficient_vnodes_available}
>> means
>> in terms of 2i query.
>> Does it mean not all primary partitions are up?
>>
>> Regards
>> Daniel
>>
>>
>>
>> --
>> View this message in context:
>> http://riak-users.197444.n3.nabble.com/Cluster-start-and-2i-query-tp4030557p4030614.html
>> Sent from the Riak Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> riak-users mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4030631&i=1>
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
>
> _______________________________________________
> riak-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4030631&i=2>
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://riak-users.197444.n3.nabble.com/Cluster-start-and-2i-query-tp4030557p4030631.html
> To unsubscribe from Cluster start and 2i query, click
> here<http://riak-users.197444.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4030557&code=aXdhbi5kYW5pZWxAZ21haWwuY29tfDQwMzA1NTd8LTYxNzE4NjQwNw==>
> .
> NAML<http://riak-users.197444.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://riak-users.197444.n3.nabble.com/Cluster-start-and-2i-query-tp4030557p4030639.html
Sent from the Riak Users mailing list archive at Nabble.com.
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com