Session lastUsed parameter not updated correctly for a Transaction #1933
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
samples
Issues that are directly related to samples.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Each pooled session has a parameter lastUsed which indicates the timestamp when the session was last used. If we make successive RPC calls within a transaction, this parameter only gets updated at the start of the transaction (when we begin transaction) and does not get updated with subsequent RPC calls. This is becuase this time is set when a session is assigned to a transaction.
Bug : In the above example we would expect the timestamp to get updated for each query but is only updated before the first RPC.
The text was updated successfully, but these errors were encountered: