With Scala Verison 2.13.1 and Phantom version 2.59.0
The Phantom driver is failing to re-connect after my Cassandra goes down and re-covers after some time.
This is how my Cluster Builder looks like:
ContactPoints(hosts).withClusterBuilder(
_.withCredentials("cassandra", "cassandra")
.withPort(9042)
.withProtocolVersion(ProtocolVersion.V4)
).noHeartbeat().keySpace(
KeySpace(keyspace).ifNotExists().`with`(
replication eqs SimpleStrategy.replication_factor(1)
)
)
Steps to Reproduce:
- Spin-down Cassandra
- Run the application and ensure that the application throws
com.datastax.driver.core.exceptions.NoHostAvailableException
- Bring-up Cassandra and ensure Keyspace is ready
- trigger the Application to make a DB call.
- Expected to see that phantom connection is successful. But, the service still throws
NoHostAvailableException exception
With Scala Verison
2.13.1and Phantom version2.59.0The Phantom driver is failing to re-connect after my Cassandra goes down and re-covers after some time.
This is how my Cluster Builder looks like:
Steps to Reproduce:
com.datastax.driver.core.exceptions.NoHostAvailableExceptionNoHostAvailableExceptionexception