Skip to content

Commit

Permalink
cb-ext frequent pod crash issue due to contact point (#168)
Browse files Browse the repository at this point in the history
* cb-ext frequent pod crash issue due to contact point

* else part removed for multiple contact points fixes
  • Loading branch information
wilkysingh-tarento authored Jan 19, 2023
1 parent 7e1ca1e commit 09b896d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ private void createCassandraConnection() {
poolingOptions.setPoolTimeoutMillis(
Integer.parseInt(cache.getProperty(Constants.POOL_TIMEOUT)));
String cassandraHost = (cache.getProperty(Constants.CASSANDRA_CONFIG_HOST));
String[] hosts = new String[]{cassandraHost};
String[] hosts = null;
if (StringUtils.isNotBlank(cassandraHost)) {
hosts = cassandraHost.split(",");
}
cluster = createCluster(hosts, poolingOptions);

final Metadata metadata = cluster.getMetadata();
Expand Down

0 comments on commit 09b896d

Please sign in to comment.