Skip to content

Mongo Event repository not working with archive Completion Mode #1412

@nkolosnjaji

Description

@nkolosnjaji

When using CompetitionMode ARCHIVE with Mongo Event repository following error occurs:

Command execution failed on MongoDB server with error 263 (OperationNotSupportedInTransaction): '$merge cannot be used in a transaction' on server ...

How to reproduce:

Add @SpringBootTest(properties = {CompletionMode.PROPERTY + "=ARCHIVE"}) to spring-modulith-examples/spring-modulith-example-epr-mongodb/src/test/java/example/ApplicationIntegrationTests.java

P.S. I see there are test for all Completion modes in MongoDbEventPublicationRepositoryTest, but for 1.x they were run against embedded Mongo and for 2.x i see that tests are skipped in CI.

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