From: Vikram Potturi(apotturi) Date: Fri, 18 May 2018 23:05:21 +0000 (-0400) Subject: Fixed Zookeeper loadbalance issue. X-Git-Tag: v2.5.5~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Frelease-2.5.5;p=music.git Fixed Zookeeper loadbalance issue. Change-Id: I50e20eb4aca2eb9eceb2e29b21703352f4a4a971 Issue-ID: MUSIC-73 Signed-off-by: Vikram Potturi(apotturi) --- diff --git a/jar/pom.xml b/jar/pom.xml index 7cb9da6e..d2d74523 100644 --- a/jar/pom.xml +++ b/jar/pom.xml @@ -25,7 +25,7 @@ org.onap.music MUSIC jar - 2.5.4 + 2.5.5 This is the MUSIC interface, packaged as a jar file. diff --git a/jar/src/main/java/org/onap/music/main/MusicUtil.java b/jar/src/main/java/org/onap/music/main/MusicUtil.java index fe799c4b..f18570db 100755 --- a/jar/src/main/java/org/onap/music/main/MusicUtil.java +++ b/jar/src/main/java/org/onap/music/main/MusicUtil.java @@ -551,8 +551,8 @@ public class MusicUtil { } // get the property value and return it MusicUtil.setMyCassaHost(prop.getProperty("cassandra.host")); - String[] zkHost = prop.getProperty("zookeeper.host").split(","); - MusicUtil.setMyZkHost(zkHost[0]); + String zkHosts = prop.getProperty("zookeeper.host"); + MusicUtil.setMyZkHost(zkHosts); MusicUtil.setCassName(prop.getProperty("cassandra.user")); MusicUtil.setCassPwd(prop.getProperty("cassandra.password")); }