canUseDirectPath returning false when DirectPath is enabled #3134
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
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.The text was updated successfully, but these errors were encountered: