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

test(spanner): log warning instead of fail for stress test #2559

Merged
merged 2 commits into from
Jul 9, 2020

Conversation

olavloite
Copy link
Contributor

Log a warning instead of failing the test if the TestStressSessionPool fails because one or more sessions are left on the server after closing the pool. This does occasionally happen; during local testing it happened once after running the test more than 10,000 times, but the reason is not clear. As the session would be garbage collected by the backend if this would happen in a real life scenario, it has been decided to leave this as is for now.

Fixes #1981

Log a warning instead of failing the test if the TestStressSessionPool fails
because one or more sessions are left on the server after closing the pool.
This does occasionally happen; during local testing it happened once after
running the test more than 10,000 times, but the reason is not clear. As the
session would be garbage collected by the backend if this would happen in a
real life scenario, it has been decided to leave this as is for now.

Fixes #1981
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 7, 2020
@olavloite olavloite merged commit 4333cce into master Jul 9, 2020
@olavloite olavloite deleted the log-warning-for-stress-test branch July 9, 2020 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spanner: TestStressSessionPool failed
3 participants