Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB2B910F6A for ; Mon, 22 Jul 2013 20:25:09 +0000 (UTC) Received: (qmail 3023 invoked by uid 500); 22 Jul 2013 20:25:09 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 2996 invoked by uid 500); 22 Jul 2013 20:25:09 -0000 Mailing-List: contact dev-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.incubator.apache.org Delivered-To: mailing list dev@curator.incubator.apache.org Received: (qmail 2988 invoked by uid 99); 22 Jul 2013 20:25:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 20:25:09 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Jul 2013 20:25:08 +0000 Received: (qmail 1937 invoked by uid 99); 22 Jul 2013 20:24:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jul 2013 20:24:48 +0000 Date: Mon, 22 Jul 2013 20:24:48 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CURATOR-40) Curator client cannot connect after one zookeeper host shuts down on EC2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CURATOR-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman resolved CURATOR-40. ------------------------------------- Resolution: Not A Problem This is occurring inside of ZooKeeper, not Curator > Curator client cannot connect after one zookeeper host shuts down on EC2 > ------------------------------------------------------------------------ > > Key: CURATOR-40 > URL: https://issues.apache.org/jira/browse/CURATOR-40 > Project: Apache Curator > Issue Type: Bug > Components: Client > Affects Versions: 2.0.1-incubating > Environment: Ubuntu instances on Amazon EC2 using DNS host names > Reporter: Andy Grove > Attachments: ApacheCuratorUnknownHostTest.java > > > We use DNS names on Amazon EC2 to specify Zookeeper host names. If one of the ZK hosts shuts down or loses network connectivity we can no longer connect via Curator, even though the other ZK hosts are still running and have quorum. The issue is specific to an UnknownHostException being thrown on DNS resolution when calling the start() method on CuratorZookeeperClient. The workaround is for us to use IP addresses rather than DNS names, but this isn't really workable on EC2 since IP addresses change when servers restart so we use Elastic IPs to ensure that the ZK hosts have fixed IP addresses. > I have attached a unit test which demonstrates the issue and provides more detail in the comments. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira