Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
I think we have to update the MongoDB driver to the 3.x family. There are some changes, related to our component, to note:
- WriteResult
The getLastError method in WriteResult has been removed: this method does not work reliably in the 2.x series and there is no way to make work reliably, so it has been removed. Replace with use of an acknowledged WriteConcern when executing the write operation.
- DBCollection
The ensureIndex methods in DBCollection have been removed: replace with the corresponding createIndex method.
From: http://mongodb.github.io/mongo-java-driver/3.0/whats-new/upgrading/