[
https://issues.apache.org/jira/browse/CASSANDRASC-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793350#comment-17793350
]
Yifan Cai commented on CASSANDRASC-79:
--------------------------------------
+1 on the patch. Can you share the CI link as well?
> 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
> Priority: Normal
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]