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

[jira] [Created] (CASSANDRA-19052) `MetadataManager.contactPoints` may be Misused.

Jane He created CASSANDRA-19052:
-----------------------------------

             Summary: `MetadataManager.contactPoints` may be Misused.
                 Key: CASSANDRA-19052
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19052
             Project: Cassandra
          Issue Type: Task
          Components: Client/java-driver
            Reporter: Jane He
            Assignee: Henry Hughes


Some usage of `getContactPoints()` (for `MetadataManager.contactPoints`) may be wrong. They may want to use `metadata.getNodes()` instead, like [this|https://github.com/apache/cassandra-java-driver/blob/0e4f40121d65d600b123cea4bfe365dbc09bfbad/core/src/main/java/com/datastax/oss/driver/internal/core/loadbalancing/helper/OptionalLocalDcHelper.java#L71] one.

`MetadataManager.contactPoints` are hard-coded initial config of nodes, not including any nodes added in runtime. Consider changing it to `public final ImmutableSet<EndPoint>` instead.

More investigation needed.

 



--
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