Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Prevent different Cassandra client contexts from using the same ExecutionProfile object #585

Open
@ckw4ng

Description

@ckw4ng

The underlying cassandra library that Basepate.py uses relies on the LoadBalancingPolicy that gets created alongside an ExecutionProfile to manage a list of candidate Cassandra cluster hosts for queries. This can lead to issues when an ExecutionProfile instance object is passed to multiple cluster_from_config calls for different Cassandra clusters. Each cluster will attach the same ExecutionProfile instance and LoadBalancingPolicy, which might end up containing hosts that aren't even in the cluster because of other clusters overwriting the host data.

It would be good to have some guardrails in place to prevent this sharing of ExecutionProfile objects, and instead explicitly have new profiles be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions