curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [04/25] curator git commit: [CURATOR-160] Fix QuorumConfigBuilder to provide a valid server string.
Date Tue, 12 May 2015 13:54:05 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/019ed279
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/019ed279
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/019ed279

Branch: refs/heads/CURATOR-3.0
Commit: 019ed27961d900e828deb72c7530f417c1b3f28e
Parents: 0347837
Author: Ioannis Canellos <iocanel@gmail.com>
Authored: Tue Nov 11 12:28:53 2014 +0200
Committer: Ioannis Canellos <iocanel@gmail.com>
Committed: Tue Nov 11 12:28:53 2014 +0200

----------------------------------------------------------------------
 .../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/019ed279/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