In newer versions of the mongo-java-driver the Mongo class has been deprecated in favor of MongoClient. They did this because the new default WriteConcern in MongoClient is SAFE (aka ACKNOWLEDGED) instead of NORMAL (aka UNACKNOWLEDGED).
This impacts lift-mongodb in 2 ways;
Firstly, the code to setup Mongo instances needs to change. We could just update the code to use MongoClient (and MongoClientOptions), but that would be a breaking change. However, since you should only have one instance per JVM this would be a very small breaking change and I'm leaning towards this path.
Would anyone object to this breaking change?
Secondly, with the new default WriteConcern, database operations that do not return properly will now throw an exception.
This does *not* affect lift-mongo-record's save function, since the WriteConcern is explicitly set when calling it, and will still default to NORMAL.
However, this does affect other lift-mongo-record functions like update and delete. And will affect all of MongoDocument's functions.
Anyone have any thoughts or concerns?
Tim