Skip to content

GridFSTemplate documentation/javadocs should clarify that WriteConcern needs to be set on the MongoDbFactory [DATAMONGO-664] #1599

Open
@spring-projects-issues

Description

@spring-projects-issues

Raman Gupta opened DATAMONGO-664 and commented

The GridFsTemplate does not have any explicit logic/settings for WriteConcern. Instead, it uses the write concern setting from the DB object, which is created by the injected MongoDbFactory. This reflects the way the underlying MongoDB java driver works (which seems strange, but oh well).

This behavior is somewhat surprising and should be prominent in the documentation and javadocs


Affects: 1.2.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions