Skip to content

Javers not participate in mongodb transaction #1137

@twchiam

Description

@twchiam

Hi,
Mongodb supports multiple documents transaction of multiple collections starting version 4.0, I have tested the mongodb transaction myself by persisting multiple documents from different collections with spring boot in a method that annotated with transactional annotation and it rollback all changes when exception was thrown. However, javers still able to commit it own revision changes to mongodb. Please refers to the links below for mongodb transaction and spring mongodb transaction:
https://docs.mongodb.com/manual/core/transactions/
https://www.baeldung.com/spring-data-mongodb-transactions

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions