It is the first time I am using Elastic Search technology and I don't know how to face the following issue.
[6c48d578-2f5f-4d7c-9cd1-2dd356906801_application_unique_id/B8Q4QxraQSW026dKuKd8Jg][[6c48d578-2f5f-4d7c-9cd1-2dd356906801_application_unique_id]] ElasticsearchStatusException[Elasticsearch exception [type=version_conflict_engine_exception, reason=[_doc][35393039413737302D304142452D344133442D384539332D303543433437393839303044]: version conflict, required seqNo , primary term . current document has seqNo  and primary term ]]
My application is constantly updating data to the same document, storing it in an ES cluster in AWS. The version used is 6.8, having a c5.xlarge.elasticsearch instance, with 2 data nodes and 3 master nodes.
I am trying to replicated this issue in another environment with the same configuration in order to get an idea of what is happening and how to solve it, but the exception is not appearing.
The latency shown in the stadistics is over 40 ms in the original ES vs 0 ms in the ES copy, which could be the reason why this error is shown in one of them but not in the other. I really have no idea how to deal with it, because I cannot reproduce the error.
Any ideas? Thank you in advance.