You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] Exception in thread "main" java.lang.IllegalStateException: Invalid config key 'contactPoints'
[error] at io.getquill.util.Messages$.fail(Messages.scala:8)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1(ClusterBuilder.scala:45)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1$1.apply(ClusterBuilder.scala:46)
[error] at scala.util.Try.getOrElse(Try.scala:79)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1(ClusterBuilder.scala:46)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1$1.apply(ClusterBuilder.scala:46)
[error] at scala.util.Try.getOrElse(Try.scala:79)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1(ClusterBuilder.scala:46)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1$1.apply(ClusterBuilder.scala:46)
[error] at scala.util.Try.getOrElse(Try.scala:79)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.io$getquill$context$cassandra$cluster$ClusterBuilder$$anonfun$$tryMethods$1(ClusterBuilder.scala:46)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.apply(ClusterBuilder.scala:49)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$$anonfun$io$getquill$context$cassandra$cluster$ClusterBuilder$$set$2.apply(ClusterBuilder.scala:18)
[error] at scala.collection.mutable.HashSet.foreach(HashSet.scala:78)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$.io$getquill$context$cassandra$cluster$ClusterBuilder$$set(ClusterBuilder.scala:18)
[error] at io.getquill.context.cassandra.cluster.ClusterBuilder$.apply(ClusterBuilder.scala:15)
[error] at io.getquill.CassandraContextConfig.builder(CassandraContextConfig.scala:13)
[error] at io.getquill.CassandraContextConfig.cluster(CassandraContextConfig.scala:14)
[error] at io.getquill.CassandraAsyncContext.<init>(CassandraAsyncContext.scala:21)
[error] at io.getquill.CassandraAsyncContext.<init>(CassandraAsyncContext.scala:22)
Version:
0.10.1-SNAPSHOT
Module:
quill-cassandra
Database:
cassandra
Expected behavior
It would be very convenient to be able to define contactPoints with ports in the configuration.
We can define an array of hosts like
but we can't define it with their corresponding ports.
Actual behavior
Steps to reproduce the behavior
Have a config file with:
and then:
Workaround
Create the cassandra context passing a ClusterBuilder.
@getquill/maintainers
The text was updated successfully, but these errors were encountered: