Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E585017E7E for ; Tue, 12 May 2015 15:53:48 +0000 (UTC) Received: (qmail 88718 invoked by uid 500); 12 May 2015 15:53:48 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 88621 invoked by uid 500); 12 May 2015 15:53:48 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 88415 invoked by uid 99); 12 May 2015 15:53:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2015 15:53:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6D8DFE17E7; Tue, 12 May 2015 15:53:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Date: Tue, 12 May 2015 15:53:55 -0000 Message-Id: <9ab261d85e404677b79b19c13a4929e3@git.apache.org> In-Reply-To: <43900fd9fc7a4ef48ec4069ebf7763a1@git.apache.org> References: <43900fd9fc7a4ef48ec4069ebf7763a1@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [08/26] curator git commit: [CURATOR-160] Fix QuorumConfigBuilder to provide a valid server string. [CURATOR-160] Fix QuorumConfigBuilder to provide a valid server string. Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/3b5452f2 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/3b5452f2 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/3b5452f2 Branch: refs/heads/CURATOR-215 Commit: 3b5452f2c8c9c72a8298dc85671e71c2add16604 Parents: d4a5c63 Author: Ioannis Canellos Authored: Tue Nov 11 12:28:53 2014 +0200 Committer: Ioannis Canellos Committed: Fri Apr 17 13:00:30 2015 +0300 ---------------------------------------------------------------------- .../src/main/java/org/apache/curator/test/QuorumConfigBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/3b5452f2/curator-test/src/main/java/org/apache/curator/test/QuorumConfigBuilder.java ---------------------------------------------------------------------- diff --git a/curator-test/src/main/java/org/apache/curator/test/QuorumConfigBuilder.java b/curator-test/src/main/java/org/apache/curator/test/QuorumConfigBuilder.java index 8add08e..02979ee 100644 --- a/curator-test/src/main/java/org/apache/curator/test/QuorumConfigBuilder.java +++ b/curator-test/src/main/java/org/apache/curator/test/QuorumConfigBuilder.java @@ -99,7 +99,7 @@ public class QuorumConfigBuilder { for ( InstanceSpec thisSpec : instanceSpecs ) { - properties.setProperty("server." + thisSpec.getServerId(), String.format("localhost:%d:%d", thisSpec.getQuorumPort(), thisSpec.getElectionPort())); + properties.setProperty("server." + thisSpec.getServerId(), String.format("localhost:%d:%d;localhost:%d", thisSpec.getQuorumPort(), thisSpec.getElectionPort(), thisSpec.getPort())); } }