Java Driver 2.5 Released

40 views
Skip to first unread message

Eliot Horowitz

unread,
Mar 10, 2011, 5:20:55 PM3/10/11
to mongod...@googlegroups.com, mongo...@googlegroups.com, mongodb-...@googlegroups.com
Version 2.5 of the MongoDB Java driver is now available for download
and will be in maven shortly.

This version fixes a number of issues, especially when connecting to
replica sets.
It also has some API enhancements for features coming out in 1.8.

Downloads: https://github.com/mongodb/mongo-java-driver/downloads
Change Log: http://jira.mongodb.org/browse/JAVA/fixforversion/10215

Please let us know of any issues,
-Eliot

Alexander Azarov

unread,
Mar 11, 2011, 5:25:38 AM3/11/11
to mongod...@googlegroups.com, mongo...@googlegroups.com, mongodb-...@googlegroups.com
Eliot,

http://jira.mongodb.org/browse/JAVA-276 seems to break backward compatibility. The driver throws an exception when findAndRemove called and there is no record to modify (basically means findAndModify with returnNew=false), while the previous 2.4 version returned "null" in this case.

Test case: https://github.com/alaz/mongo-java-driver/commit/56478bbefdd99fb97a564a449e99772efc08e7b8

Regards,
Alexander

Reinaldo

unread,
Mar 11, 2011, 12:15:35 PM3/11/11
to mongodb-user
Is this recommended to use against older versions like 1.6.5 or
1.7.x ? Or safer to wait for 1.8 ?

Brendan W. McAdams

unread,
Mar 11, 2011, 12:25:39 PM3/11/11
to mongod...@googlegroups.com
It should be fully backward compatible with previous releases of the server, barring the MapReduce functionality.

The Java Driver 2.5 interface no longer supports mapReduce to temporary collections and requires that the output collection be named.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Reply all
Reply to author
Forward
0 new messages