aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zane Silver" <>
Subject Review Request 36697: Added fix for client to connect to correct zookeeper-hosts address/port pairs
Date Wed, 22 Jul 2015 18:06:20 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for Aurora.

Repository: aurora


Added fix for Aurora client to connect to correct zookeeper-hosts address/port pairs.

When more than one zookeeper host was specified in the clusters.json file, only the last host
was accessed through the specified zk_port. The client would attempt to connect to all other
zookeeper hosts using the default port (2181).

For example, in clusters.json:
  "name": "<my_cluster>",
  "zk": ",,",
  "zk_port": 2626,
  "scheduler_zk_path": "/cluster/aurora/scheduler",
  "slave_run_directory": "latest"
I found that the client would attempt to access the zk hosts addresses,, and Thus, the "zk_port" attribute would only
update the last host in the host string-list. This change allows the client to properly connect
to multiple zookeeper hosts using a port other than the specified port.

Note, that the KazooClient accepts a comma-separated string of hosts.


  src/main/python/apache/aurora/client/api/ b8361b82476416d2d7370ab6b170423945d0b4a2



This is a simple change, but tested to make sure client can still connect to each zookeeper
host. Then verified that all hosts are now accessed through the correct port, not just the
default (port 2181). Also viewable by Aurora client INFO logs.


Zane Silver

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message