symat opened a new pull request #1228: ZOOKEEPER-3698: fixing 
NoRouteToHostException when starting large cluster locally
URL: https://github.com/apache/zookeeper/pull/1228
 
 
   When we tested RC 3.6.0, we had a problem of starting ZooKeeper cluster with 
large
   number (11+) of ensemble members locally on mac. We found exceptions in the 
logs
   when the new MultiAddress feature tries to filter the unreachable hosts from 
the
   address list. This involves the calling of the InetAddress.isReachable 
method with
   a default timeout of 500ms, which goes down to a native call in java and 
basically
   try to do a ping (an ICMP echo request) to the host. Naturally, the 
localhost should
   be always reachable.
   
   The problem was that on mac we have the ICMP rate limit set to 250 by 
default.
   
   In this patch we:
   - changed the reachability check behavior by disabling the check if there is 
only
   a single address provided (so we wouldn't be able to filter the unreachable
   addresses anyway).
   - added and documented a configuration parameter to disable the reachability 
check
   for testing. (default: enabled)
   - added and documented a configuration parameter to set the timeout for the
   reachability checks. (default: 1000ms)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to