zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Serreault (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-2965) prevent DNS queries spam
Date Tue, 09 Jan 2018 17:17:00 GMT
Philippe Serreault created ZOOKEEPER-2965:

             Summary: prevent DNS queries spam
                 Key: ZOOKEEPER-2965
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2965
             Project: ZooKeeper
          Issue Type: Improvement
          Components: c client
            Reporter: Philippe Serreault
            Priority: Minor


First of all, some context about the issue and why it became quite apparent to me:
* I'm using the native zookeeper client on linux
* I'm not declaring -DTHREADED
* My zookeeper ensemble is made of server names that need to be resolved
* The ensemble and DNS servers are "next" to each other
* My client is "far" and uses an unreliable network path that can drop UDP requests

For each run in client's main loop, all servers in ensemble are resolved, even if no change
in servers list occurred (zookeeper_interest .. update_addrs .. resolve_hosts).
In my situation, DNS requests could timeout and would trigger a reconnection to ensemble.

Please find attached a patch that would prevent DNS queries when hostname was not changed.

Best regards,

This message was sent by Atlassian JIRA

View raw message