Skip to content
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

Revert "Set setFailIfPoolExhausted in SessionPoolOptions for SpannerAccessor" #32702

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

nielm
Copy link
Contributor

@nielm nielm commented Oct 8, 2024

Cherry-pick of #31663 for release 2.60

Addresses Bug #32697

This reverts commit efee92b.

Specific cause:

Spanner has a max number of 400 sessions in a session pool, where a session is used for a read or a write operation.

When using streaming pipelines on Dataflow with a high degree of parallelisation, where each work item can be reading from and writing to spanner, Dataflow will have up to 300 threads per worker, which potentially means 300 simultaneous read sessions, and 300 simultaneous downstream writes.

In some scenarios, this can lead to session pool exhaustion, followed by a worker failing due to this flag.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@nielm
Copy link
Contributor Author

nielm commented Oct 8, 2024

R: @Abacn
cc: @manitgupta

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@Abacn Abacn merged commit 64854bb into apache:release-2.60.0 Oct 8, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants