Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-connecting to Cassandra after recovering #917

Open
lakshmankollipara opened this issue Oct 6, 2020 · 0 comments
Open

Re-connecting to Cassandra after recovering #917

lakshmankollipara opened this issue Oct 6, 2020 · 0 comments

Comments

@lakshmankollipara
Copy link

lakshmankollipara commented Oct 6, 2020

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:

  1. Spin-down Cassandra
  2. Run the application and ensure that the application throws com.datastax.driver.core.exceptions.NoHostAvailableException
  3. Bring-up Cassandra and ensure Keyspace is ready
  4. trigger the Application to make a DB call.
  5. Expected to see that phantom connection is successful. But, the service still throws NoHostAvailableException exception
@lakshmankollipara lakshmankollipara changed the title Return Type mismatch for Scala 2.13 Re-connecting to Cassandra after recovering Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant