Database#close(): Promise doesn't handle SessionPool#close() properly #1828
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Database#close() has Promise interface.
https://github.com/googleapis/nodejs-spanner/blob/main/src/database.ts#L627
But I found that
await database.close()
ordatabase.close().then()
doesn't waitSessonPool#close()
properly.nodejs-spanner/src/database.ts
Line 634 in f915bd1
I think this code should be handle
callback
as followings:The text was updated successfully, but these errors were encountered: