ReactiveMongo/Play-ReactiveMongo

parsing mongodb.uri ignores mongo options

Closed this issue · 1 comments

Hi,

The format of the URI should be :
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
as defined here:
http://api.mongodb.org/java/current/com/mongodb/MongoURI.html

Am I correct in noticing that the options section of the URI where I'd normally set the writeConcern is being ignored?

Yes, right now it is the case. A few commits ago in ReactiveMongo itself the ability to change the source of authentication credentials has been introduced. However, the writeConcern option in the URL is not parsed because there is no global option for this in the API. This is planned to land in 0.11.

You can change the writeConcern on a case-by-case basis though.