googleapis / java-spanner

Apache License 2.0
55 stars 110 forks source link

chore: add wait for async span #3153

Closed olavloite closed 2 months ago

olavloite commented 2 months ago

Add a wait for the BatchCreateSessions span, as that operation is executed asynchronously, and is not guaranteed to have finished when the transaction finishes. The reason for this is that the transaction only needs 1 session, while the operation creates 4 sessions, and the operation only finishes once all 4 sessions have been created.

Fixes #3152