-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Connection management support (with optional grpc_gcp dependency) #5553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
theacodes
merged 8 commits into
googleapis:master
from
WeiranFang:connection-management-support
Jul 27, 2018
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4b63e7f
Add support for grpc_gcp secure channel
WeiranFang 2d776f0
Optional connection management support for spanner client
WeiranFang 82c05fe
Add nox tests and make sure 100% coverage.
WeiranFang 66ce715
Remove _create_secure_channel function, use helper function to create…
WeiranFang 5384c91
Fix api_core nox.
WeiranFang 3027eb3
Update grpc_helpers.create_channel docstring.
WeiranFang ab6a909
Remove mocked private members
WeiranFang 0df45cb
Fix unit tests when grpc_gcp enabled
WeiranFang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,9 @@ htmlcov | |
# JetBrains | ||
.idea | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# Built documentation | ||
docs/_build | ||
docs/_build_doc2dash | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include README.rst LICENSE | ||
recursive-include google *.json *.proto | ||
recursive-include google *.json *.proto *.config | ||
recursive-include tests * | ||
global-exclude *.pyc __pycache__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
channel_pool: { | ||
max_size: 10 | ||
max_concurrent_streams_low_watermark: 100 | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/CreateSession" | ||
affinity: { | ||
command: BIND | ||
affinity_key: "name" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/GetSession" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "name" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/DeleteSession" | ||
affinity: { | ||
command: UNBIND | ||
affinity_key: "name" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/ExecuteSql" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/ExecuteStreamingSql" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/Read" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/StreamingRead" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/BeginTransaction" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/Commit" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/Rollback" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/PartitionQuery" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} | ||
method: { | ||
name: "/google.spanner.v1.Spanner/PartitionRead" | ||
affinity: { | ||
command: BOUND | ||
affinity_key: "session" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.