3

我的工作人员处理对象并将它们写入 mysql 和 elasticsearch,现在恰好有 2 个(或多个工作人员)处理类似的对象并更新相同的 ES 文档。

导致以下错误:

VersionConflictEngineException[[test][4] [seller][2678449]: version conflict, current [18], provided [17]]

我做了一些研究并尝试使用该retry_on_conflict选项,但这导致了以下错误:

ActionRequestValidationException[Validation Failed: 1: can't provide both retry_on_conflict and a specific version;]

我使用Elastica 1.2.1版 和 Elasticsearch 1.2.1 版

4

0 回答 0