You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Thomas Koch (JIRA)" <ji...@apache.org> on 2010/11/29 10:15:37 UTC

[jira] Commented: (ZOOKEEPER-328) We need to test the code that uses DNS lookups that return multiple results to enumerate the zookeeper servers

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

Thomas Koch commented on ZOOKEEPER-328:
---------------------------------------

Does anybody know, how we could mock the DNS lookup done by java at test time?

> We need to test the code that uses DNS lookups that return multiple results to enumerate the zookeeper servers
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-328
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-328
>             Project: ZooKeeper
>          Issue Type: Test
>          Components: c client, java client
>            Reporter: Benjamin Reed
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Our client code uses the list of addresses returned from DNS as separate servers, so a zookeeper installation can have a single host name resolve to the addresses of all the zookeeper servers. this allows the zookeepers to change without changing the clients' configuration. the code is there, but we do not have tests for that code.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.