Interesting issue with Ruby Riak client not finding keys in a cluster configuration

Luke Bakken lbakken at basho.com
Fri Oct 10 19:04:04 EDT 2014


Hi Chaim,

What is the output of "riak-admin member-status" in this cluster?

Thanks -
--
Luke Bakken
Engineer / CSE
lbakken at basho.com


On Thu, Aug 7, 2014 at 12:30 AM, Chaim Solomon
<chaim at itcentralstation.com> wrote:
> Hi,
>
> I just found an interesting issue (debugging mystery):
> On the development node I connect through a SSH tunnel to one node of the
> cluster
>
> riak_client = Riak::Client.new(http_port: 9198, pb_port: 9187, protocol:
> 'pbc')
>
> and on the staging server, I had the client set up for using a list of nodes
> to allow automatic failover if needed:
>
>   riak_client = Riak::Client.new(:nodes => [
>       {pb_port: 8087, host: 'ip_of_node1', protocol: 'pbc'},
>       {pb_port: 8087, host: 'ip_of_node2', protocol: 'pbc'},
>       {pb_port: 8087, host: 'ip_of_node3', protocol: 'pbc'}])
>
> But in this configuration some keys that are available when I connect with
> the "simple" configuration are just not found. I changed it on the same
> server to use only one node
> riak_client = Riak::Client.new(pb_port: 8087, host: 'ip_of_node1', protocol:
> 'pbc')
>
> and the key is found. I tried it with the other riak nodes and for each of
> them it workes.
>
> What is going on?
>
> riak-client (1.4.4.1)
>
> Chaim Solomon
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list