Skip to content

Releases: mongodb/mongo-java-driver

3.0.3

16 Jul 15:58

Choose a tag to compare

Java Driver 3.0.3 (July 16, 2015)

The 3.0.3 MongoDB Java Driver is a patch to the 3.0.0 release.

Reference documentation

The new documentation hub includes extensive documentation of the 3.0 driver, including

and much more.

API Documentation

http://api.mongodb.org/java/3.0/

README

https://github.com/mongodb/mongo-java-driver/blob/master/README.md

Bug fixes

You can find a full list of bug fixes here.

3.0.2

28 May 18:46

Choose a tag to compare

Java Driver 3.0.2 (May 27, 2015)

The 3.0.2 MongoDB Java Driver is a patch to the 3.0.0 release.

Reference documentation

The new documentation hub includes extensive documentation of the 3.0 driver, including

and much more.

API Documentation

http://api.mongodb.org/java/3.0/

README

https://github.com/mongodb/mongo-java-driver/blob/master/README.md

Bug fixes

You can find a full list of bug fixes here.

Improvements

You can find a full list of improvements here.

2.13.2

28 May 16:44

Choose a tag to compare

Java Driver 2.13.2 (May 28, 2015)

The 2.13.2 MongoDB Java Driver is a patch to the 2.13.0 release. It contains fixes for the following issues:

  • JAVA-1815: Remove from the topology a replica set member whose "me" hostname:port does not match the one that was used to connect to it
  • JAVA-1799: Use electionId reported by ismaster to avoid sending operations to false primaries
  • JAVA-1814: Cluster manager behaves incorrectly when server addresses are given as DBAddress
  • JAVA-1780: A socket will be returned to the pool in an undefined state if an Error subclass is thrown while reading from it
  • JAVA-1842: listCollections and listIndexes commands are forced to the primary

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.13/

3.0.1

05 May 20:02

Choose a tag to compare

Java Driver 3.0.1 (May 5, 2015)

The 3.0.1 MongoDB Java Driver is a patch to the 3.0.0 release.

Reference documentation

The new documentation hub includes extensive documentation of the 3.0 driver, including

and much more.

API Documentation

http://api.mongodb.org/java/3.0/

README

https://github.com/mongodb/mongo-java-driver/blob/master/README.md

Bug fixes

You can find a full list of bug fixes here.

Improvements

You can find a full list of improvements here.

2.13.1

13 Apr 21:13

Choose a tag to compare

Java Driver 2.13.1 (April 13, 2015)

The 2.13.1 MongoDB Java Driver is a patch to the 2.13.0 release. It contains the following minor changes:

  • JAVA-1738: OSGi Import-Package is missing javax.crypto and javax.crypto.spec
  • JAVA-1641: Remove errant Deprecation annotation on MongoClientOptions.Builder.localThreshold()

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.13/

3.0.0

31 Mar 20:25

Choose a tag to compare

Java Driver 3.0.0 (March 31, 2015)

The 3.0.0 MongoDB Java Driver is a major release that includes bug fixes, new features, and improvements.

As a major release, it is not binary or source compatible with the 2.x release series.

It supports MongoDB server versions from the 2.2 release through the most recent 3.0 release.

The 3.0 Java driver is not a required upgrade for MongoDB 3.0. The 2.13.0 release is the minimum required for full compatibility with MongoDB 3.0.

Reference documentation

The new documentation hub includes extensive documentation of the 3.0 driver, including

and much more.

API Documentation

http://api.mongodb.org/java/3.0/

README

https://github.com/mongodb/mongo-java-driver/blob/master/README.md

Bug fixes

You can find a full list of bug fixes here.

New Features

You can find a full list of new features here.

Improvements

You can find a full list of improvements here.

2.13.0

29 Jan 14:50

Choose a tag to compare

Java Driver 2.13.0 (January 29, 2015)

The 2.13.0 MongoDB Java Driver includes bug fixes, new features, and improvements. It is binary compatible with the 2.12 release line and supports all MongoDB server versions from the 2.2 release through the upcoming 3.0 release.

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.13/

Compatibility

If you are deploying MongoDB version 3.0 with authentication enabled, and one of the following holds true:

  • You have no existing users created in the database
  • You plan to execute the authSchemaUpgrade command

then you MUST first

Otherwise, authentication will fail because the server is expecting the driver to use the new SCRAM-SHA1 authentication protocol rather than the MONGODB-CR authentication protocol that it replaces.

Bug fixes

You can find a full list of bug fixes here.

New Features

You can find a full list of new features here.

Improvements

You can find a full list of improvements here.

And finally: this will be the last feature release before the 3.0 driver release, which will contain backwards breaking changes. The 2.13 release deprecates some additional classes and methods, most of which will be removed in 3.0. So to prepare for an eventual upgrade, please compile against 2.13 with deprecation warnings enabled. Code which compiles without any deprecation warnings against 2.13 should run without modification against the eventual 3.0 release. You can find a complete list of deprecated classes and methods that will be removed in the 3.0 release here. You can find the list of deprecations added in the 2.13 release here.

2.12.5

15 Jan 15:45

Choose a tag to compare

Java Driver 2.12.5 (January 15, 2015)

The 2.12.5 Java driver is a patch release. It is a recommended upgrade for all users.

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.12/

Bugs:

  • JAVA-1541: unordered bulk writes should continue sending batches after an error
  • JAVA-1613: Race condition on DBPort usage during write commands
  • JAVA-1581: Driver throws IllegalStateException unnecessarily

2.12.4

15 Oct 16:26

Choose a tag to compare

Java Driver 2.12.4 (October 15, 2014)

The 2.12.4 Java driver is a patch release. It is a recommended upgrade for all users.

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.12/

Bugs:

  • JAVA-1164: ThreadLocal anonymous subclass prevents classloader from being GC'd
  • JAVA-1473: findOne overload that takes only the value of the _id field does not apply read preference to mongos properly

Improvements:

  • JAVA-1477: Server selection exception should chain exceptions from server monitors

2.12.3

21 Jul 14:50

Choose a tag to compare

Java Driver 2.12.3 (July 21, 2014)

The 2.12.3 Java driver is a patch release. It is a recommended upgrade for all users.

Downloads

Below and on maven central

Docs

http://api.mongodb.org/java/2.12/

Bugs:

  • JAVA-1253: AggregationOutput should not throw IllegalArgumentException on command failure
  • JAVA-1254: Some helper methods wrapping commands do not throw on error
  • JAVA-1287: WriteResult.isUpdateOfExisting reports wrong value running against MongoDB 2.6
  • JAVA-1295: Server Monitor does not log failed connection attempt
  • JAVA-1246: If two instances of the same standalone server is passed to MongoClient, the driver removes it from the cluster monitor
  • JAVA-1284: Include full wait time in timeout exceptions
  • JAVA-1285: Force frequent connection attempts when waiting for cluster description

Improvements:

  • JAVA-1263: Handle Bulk API edge case for pre-2.6 servers when upserted _id not returned
  • JAVA-1272: Support reading MongoDB Extended JSON containing $numberLong
  • JAVA-1252: Should invalidate connection pool when ServerMonitor detects a disconnect