all: investigate why the time before a response on a failed query is in the order of seconds meanwhile correct queries take milliseconds #2173
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.
While extensively testing this library and also benchmarking over the course of my work on observability, I noticed that whenever a bad query (say with a syntax error) is issued using these libraries, executing the finally block is on the order of seconds even using MockSpanner, but for working queries we are in the order of microseconds to milliseconds
will print out
Maybe it is just a problem with Node.js but that's let to the maintainers of this library to examine if there is something wrong going on here. Most likely it could be due to the unconditional calls to this.begin() which keep retrying or something else but either way the time to resolve should be the same.
The text was updated successfully, but these errors were encountered: