You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
If we examine the code for Database.runTransactionAsync, it invokes a while(true) loop retrying on any error without differentiating if the error can be retried or not and the only way to break out of that loop is by throwing an exception
The only way I can test out functionality of that code in error is by throwing an exception and there aren't tests for what happens with a variety of errors. Let's please add them.
If we examine the code for Database.runTransactionAsync, it invokes a while(true) loop retrying on any error without differentiating if the error can be retried or not and the only way to break out of that loop is by throwing an exception
nodejs-spanner/src/database.ts
Lines 3370 to 3406 in 2a19ef1
The only way I can test out functionality of that code in error is by throwing an exception and there aren't tests for what happens with a variety of errors. Let's please add them.