-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
api: spannerIssues related to the googleapis/java-spanner API.Issues related to the googleapis/java-spanner API.
Description
We have a bunch of TODOs to infer the channelId and to add them in we shall need to infer the channelId from both SpannerRpc.Option.CHANNEL_HINT and spanner.getOptions().getNumChannels() like we do here
java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPool.java
Lines 1655 to 1660 in 53bc510
int getChannel() { | |
Long channelHint = (Long) delegate.getOptions().get(SpannerRpc.Option.CHANNEL_HINT); | |
return channelHint == null | |
? 0 | |
: (int) (channelHint % sessionClient.getSpanner().getOptions().getNumChannels()); | |
} |
Please assign this issue to me.
Metadata
Metadata
Assignees
Labels
api: spannerIssues related to the googleapis/java-spanner API.Issues related to the googleapis/java-spanner API.