We are using spanner emulator in our sandbox environment. From time to time it happens that some transaction hangs out what is causing following error:
Caused by: com.google.api.gax.rpc.AbortedException: io.grpc.StatusRuntimeException: ABORTED: Transaction 37431 aborted due to active transaction 27078. The emulator only supports one transaction at a time.
The only way we found to make the spanner emulator working again after such an issue is to recreate a database (delete and create) what is quite annoying.
I've tried to kill all sessions listed by gcloud spanner databases sessions list --database=db --instance=sand
but it is not helping.
Is there any way to abort/rollback a hanging transaction in spanner emulator?