-
Notifications
You must be signed in to change notification settings - Fork 104
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
Spanner clients hangs for a few seconds after running a query #1324
Comments
@olavloite if you could please take a look at this one, that would be awesome. |
If an acquire timeout had been set for the session pool, the timeout handler would not be cleared once a session was successfully returned, or when the getSession method would fail because of another error. That could cause an application running for at most acquireTimeout milliseconds if the last action the application did was to acquire a session. Fixes googleapis#1324
This problem is caused by the The workaround in version 5.6.0 and earlier is to not set an |
If an acquire timeout had been set for the session pool, the timeout handler would not be cleared once a session was successfully returned, or when the getSession method would fail because of another error. That could cause an application running for at most acquireTimeout milliseconds if the last action the application did was to acquire a session. Fixes #1324 Co-authored-by: skuruppu <[email protected]>
thank you @olavloite @skuruppu Is that going to be released with version 5.7 ? When can we expect it to be bumped? |
It should be included in 5.6.1 and higher: #1328 |
I will merge the release PR shortly. Hopefully it'll be done by tomorrow. |
🤖 I have created a release \*beep\* \*boop\* --- ### [5.6.1](https://github.com/googleapis/nodejs-spanner/compare/v5.6.0...v5.6.1) (2021-03-30) ### Bug Fixes * remove acquire timeout listener on return of session ([#1327](https://github.com/googleapis/nodejs-spanner/issues/1327)) ([72c7cce](https://github.com/googleapis/nodejs-spanner/commit/72c7cce0cc00631a0ce46cdb2bf66a0ee48d615b)), closes [#1324](https://github.com/googleapis/nodejs-spanner/issues/1324) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Environment details
@google-cloud/spanner
version: 5.5.0Steps to reproduce
test.js
time node test.js
Output:
As you can see it hangs after the query has run and it takes 5 seconds to finish the process.
The same without a the sql query
spannerDatabase.run
will finish almost immediately.I only tried with spanner emulator.
Thanks
The text was updated successfully, but these errors were encountered: