Keep creating new sessions before max is reached, not using existing ones. #750
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
@google-cloud/spanner
version:4.4.0Steps to reproduce
index.ts:
Added a display() method in database.ts:
Added a display() method in session-pool.ts:
Expected behaviour
It should reuse existing sessions instead of keeping creating new sessions.
Actual behaviour
If you run the code, you will get:
It created 100 sessions.
The text was updated successfully, but these errors were encountered: