[
https://issues.apache.org/jira/browse/ZOOKEEPER-2965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philippe Serreault updated ZOOKEEPER-2965:
------------------------------------------
Attachment: 0001-Prevent-DNS-queries-spam.patch
> 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
> Attachments: 0001-Prevent-DNS-queries-spam.patch
>
>
> Hello,
> 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
(v6.4.14#64029)