curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [6/8] curator git commit: [CURATOR-160] Fix QuorumConfigBuilder to provide a valid server string.
Date Wed, 06 May 2015 05:00:53 GMT
[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-160
Commit: 3b5452f2c8c9c72a8298dc85671e71c2add16604
Parents: d4a5c63
Author: Ioannis Canellos <iocanel@gmail.com>
Authored: Tue Nov 11 12:28:53 2014 +0200
Committer: Ioannis Canellos <iocanel@gmail.com>
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()));
             }
         }
 


Mime
View raw message