Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

How do I re-use the database connection pool that I already closed? #117

@voltrue2

Description

@voltrue2

Hello,

I have an issue with the following operation, and I cannot seem to find anything related to this issue on online documentation anywhere.
Would you guys mind pointing me to the right direction?

Environment details

  • OS: Mac OS high sierra
  • Node.js version: v7.9.0
  • npm version: v4.2.0
  • @google-cloud/spanner version: v0.8.1

Steps to reproduce

  1. Execute a select query
  2. Close database by database.close()
  3. Create new database by instance.database('myDatabase')
  4. Execute another select query with the new database object
  5. Error: pool is draining and cannot accept work

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: spannerIssues related to the googleapis/nodejs-spanner API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions