You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Doug Rohrer (Jira)" <ji...@apache.org> on 2023/10/20 01:11:00 UTC

[jira] [Created] (CASSANDRASC-79) Sidecar should be able to load metadata even if the local instance is unavailable

Doug Rohrer created CASSANDRASC-79:
--------------------------------------

             Summary: Sidecar should be able to load metadata even if the local instance is unavailable
                 Key: CASSANDRASC-79
                 URL: https://issues.apache.org/jira/browse/CASSANDRASC-79
             Project: Sidecar for Apache Cassandra
          Issue Type: Improvement
          Components: Rest API
            Reporter: Doug Rohrer
            Assignee: Doug Rohrer


Today, the sidecar’s CassandraAdapter/CqlSessionProvider uses a load balancing policy that only allows connections to a single instance configured for one of the managed instances of Cassandra. However, this is both unnecessary and potentially harmful, as requests to that instance’s hostname will fail to retrieve information like keyspace/cluster metadata when that instance is unavailable, and will not receive any updates to metadata either, which can cause stale metadata to be used.

Instead, the CqlSessionProvider should take a list of contact points and use them to connect to the whole cluster (or a subset of nodes) without the single-instance load balancing policy. Where it is necessary to query an individual instance (system tables, attempts to check the health of a particular instance) we can, instead, use the driver’s ability to direct queries to a specific host on a per-statement basis.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org