首页 > 解决方案 > 有没有办法说明 Cloud DataStore 事务失败的原因?

问题描述

我正在使用 Ruby 客户端,只看到 Google::Cloud::Datastore::TransactionError: Transaction failed to commit. from /myapp/bundle/ruby/2.4.0/gems/google-cloud-datastore-1.4.4/lib/google/cloud/datastore/dataset.rb:555:in `rescue in transaction'

是否有详细设置或我可以看到更多跟踪的东西?

标签: google-cloud-platformgoogle-cloud-datastore

解决方案


没有办法区分该问题和一些暂时性问题

是的,这是 SDK 中的一个缺陷。他们吃掉你原来的例外。在我的票务线程中阅读它:

https://github.com/googleapis/google-cloud-ruby/pull/2033


推荐阅读