Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

canUseDirectPath returning false when DirectPath is enabled #3134

Closed

Description

@surbhigarg92

Spanner Client library is trying to use canUseDirectPath from the GapicSpannerRPC class

This method is always returning false irrespective of the DirectPath is enabled or not.

It is because of the needsCredentials which always returns "true" as credentials are always null.

Same method is working for gax because the credentials are set in ClientContext before the transportChannel is created.

However for Spanner library there is no way to use the canUseDirectPath method as the actual channel provider never gets updated.

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 29, 2024
  2. added a commit that references this issue on Sep 13, 2024
    9a432f7
  3. added a commit that references this issue on Sep 17, 2024
    8efc704
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions