JaVers duplicates object snapshot versions in mongodb

40 Views Asked by At

Two java services work with the same mongo db. Both share the same entity, which is distributed as a separate jar lib. Both have Javers configuration and store snapshots to the same jv_snapshots.

The problem:

  1. For example Service 1 updates entity "example" field and Javers saves shapshot with version 2
  2. Then Service 2 updates the same field of the same entity and Javers saves shapshot with version 2 again. Why it is not 3 ?
  3. As a result in jv_snapshots we have two records with version 2 related to the same entity.
0

There are 0 best solutions below