Skip to content

TokenAwareHostPolicy ignores replica shuffling for non-default keyspaces #1925

@raj14243

Description

@raj14243

This is a follow-up for the issue reported in #1621.

PR #1714 fixes the problem only partially. The keyspace is read from the prepared statement, but the replica map contains information only for the default keyspace configured for the session. As a result, the code at policies.go:L615 returns nil, causing the query plan to fall back to primary-replica selection.

Impact: requests are routed only to the primary replica, even when replica shuffling is enabled, leading to reduced load distribution.

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