【发布时间】:2020-12-03 12:54:05
【问题描述】:
我们在沙盒环境中使用扳手模拟器。有时会发生某些事务挂起导致以下错误的原因:
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.
我们发现在出现此类问题后使扳手模拟器再次工作的唯一方法是重新创建数据库(删除和创建),这很烦人。
我已尝试终止 gcloud spanner databases sessions list --database=db --instance=sand 列出的所有会话,但没有帮助。
有没有办法在扳手模拟器中中止/回滚挂起的事务?
【问题讨论】:
标签: transactions google-cloud-spanner google-cloud-spanner-emulator