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

Chaim Solomon chaim at itcentralstation.com
Thu Aug 7 03:30:26 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20140807/b5d5d71f/attachment.html>


More information about the riak-users mailing list