C#与Google数据存储区:RpcException-DeadlineExceeded

最近一小时,我开始从部署在Google云中的应用程序中获取例外。例外:

Grpc.Core.RpcException: Status(StatusCode=DeadlineExceeded,Detail="Deadline Exceeded")
   at Google.Api.Gax.Grpc.ApiCallRetryExtensions.<>c__DisplayClass0_0`2.<<WithRetry>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Google.Cloud.Datastore.V1.DatastoreDbImpl.CommitAsync[T](IEnumerable`1 values,Func`2 conversion,action`2 keyPropagation,String parameterName,CallSettings callSettings)
   at xxx.<>c__DisplayClass12_0.<<XXXXXAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at XXXXAsync(String pid,String urlHash,String url,Boolean isaccepted) in /xxx/ResultsDB.cs:line 85

它是从多个不同的应用程序抛出的。一小时前开始。在过去48小时内我们没有更改任何代码。

产生上面异常的代码是这样的:

MyEntity My = new MyEntity(pid,urlHash);
My.Executed = true;
My.URL = url;
My.Isaccepted = isaccepted;
await DatastoreDbClient.UpdateAsync(My.ToEntity(KeyFactory)).ConfigureAwait(false); // Thrown here. 

在最后一个小时,我们收到了20次此异常。在此之前,它发生在5天前。平均而言,在此事件发生之前,它在4天内发生了一次。这里发生了不寻常的事情。有人可以解释什么?

abc123xyzzxm2000 回答:C#与Google数据存储区:RpcException-DeadlineExceeded

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3167798.html

大家都在问