相关疑难解决方法(0)

Google App Engine中的争用问题

我在Google App Engine中遇到了争用问题,并尝试了解正在发生的事情.

我有一个请求处理程序注释:

@ndb.transactional(xg=True, retries=5) 
Run Code Online (Sandbox Code Playgroud)

..在那段代码中,我获取了一些东西,更新了其他一些东西等等.但是有时在请求期间会出现像这样的错误:

16:06:20.930 suspended generator _get_tasklet(context.py:329) raised TransactionFailedError(too much contention on these datastore entities. please try again. entity group key: app: "s~my-appname"
path <
  Element {
    type: "PlayerGameStates"
    name: "hannes2"
  }
>
)
16:06:20.930 suspended generator get(context.py:744) raised TransactionFailedError(too much contention on these datastore entities. please try again. entity group key: app: "s~my-appname"
  path <
    Element {
      type: "PlayerGameStates"
      name: "hannes2"
    }
  >
  )
16:06:20.930 suspended generator get(context.py:744) raised TransactionFailedError(too much contention on these datastore …
Run Code Online (Sandbox Code Playgroud)

python google-app-engine contention app-engine-ndb google-cloud-datastore

4
推荐指数
1
解决办法
968
查看次数