[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16918537#comment-16918537
 ] 

Damien Diederen commented on ZOOKEEPER-2965:
--------------------------------------------

FYI, I have submitted a GitHub "pull request" for ZOOKEEPER-1998 which I 
believe obsoletes the patch attached here (as we need a more general solution).

> 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
(v8.3.2#803003)

Reply via email to