EventStore expectedVersionException,但事件被存储



我们使用EventStore 5.0.0,我们面临以下情况:

当我们存储事件时,c#客户端有时会收到错误的响应。日志错误:
EventStore.ClientAPI.Exceptions.WrongExpectedVersionException: Append failed due to WrongExpectedVersin. Stream: QWE.Api.SomeClassifier.Actors.ProductInfoActors.ProductActor-q5839583-5r82-5k30-sl13-1t485329g395, Expected version: 13, CurrentVersion:14

忽略此错误响应,事件存储在版本14中。

当事件被真正存储时,出现这个错误消息的原因是什么?我们认为问题出在ssd慢速或高负载上。

这是数据库内置的乐观并发检查。您可以在这里找到更多信息:https://developers.eventstore.com/clients/grpc/appending-events/#handling-concurrency

最新更新