-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
Hi Spring masters,
we are trying to use MongoDB 4.0 transactions in our project.
Unfortunatelly there is no out of the box transaction support for GridFS (or am I wrong?)
We attempted to create custom transaction aware MongoDatabaseFactory which enabled transactions in constructed GridFSTemplate but it immediately fails due to listIndexes operation which is not possible to disable in default GridFsBucketImpl.
Stack trace starts with:
com.mongodb.MongoCommandException: Command failed with error 263 (OperationNotSupportedInTransaction): 'Cannot run 'listIndexes' in a multi-document transaction.'
Do you have some hints how to use transactions with current GridFS implementation? Do you plan to implement full fledged transaction support?
Many thanks.
okworx
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply