all: potential infinite recursions in method recursion/retry due to assumption that SessionPool are always working after ._getSession return 'No Session Found' #2165
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.
Throughout this package and in my journey of tracing this package, I've encountered the pattern of this form
nodejs-spanner/src/database.ts
Lines 3608 to 3628 in 2a19ef1
but notice that if pool._getSession returns
Session Not Found
, then that method will call itself an indefinite number of times and that's non-determinism. We've got many such cases.nodejs-spanner/src/database.ts
Lines 2097 to 2103 in 2a19ef1
The text was updated successfully, but these errors were encountered: