Skip to content

canUseDirectPath returning false when DirectPath is enabled #3134

Closed
@surbhigarg92

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.

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