Thanks @Stennie_X for the prompt reply.
I’m using Spring Web Flux with reactive Mongo, sort of delegate to framework to deal with the driver etc.
As for the exception, it is nested within a Spring’s DataIntegrityViolationException:
exception=org.springframework.dao.DataIntegrityViolationException: Bulk write operation error on server <server>:27017. Write errors: [BulkWriteError{index=63, code=40333, message='Concurrent operations on the same resource, please try again', details={}}]. ; nested exception is com.mongodb.MongoBulkWriteException: Bulk write operation error on server <server>:27017. Write errors: [BulkWriteError{index=63, code=40333, message='Concurrent operations on the same resource, please try again', details={}}]. backoff={1000ms}
I’ve checked: The MongoBulkWriteException is with mongo-driver-core 3.11.2 which is a dependency in our service.
And yes, the server is not exactly Mongo. It’s AWS Document DB (but it is known to be mongo underneath with version 3.6 according to their doc)
So you reckon either the Spring framework or DocumentDB throws the exception ?
Thanks
T