Releases: mongodb/mongo-java-driver
2.11.2
Java Driver 2.11.2 (June 20, 2013)
The 2.11.2 Java is a bug fix release and is a recommended upgrade.
Downloads
maven central and
driver-downloads.mongodb.org
###Docs
http://api.mongodb.org/java/2.11.2/
Bugs:
- JAVA-401: "not master" MongoException when using GridFS with a direction connection to a secondary
- JAVA-820: DBCollection Doesn't Check Keys Contained By Lists
- JAVA-847: Remove call to String.isEmpty() in MongoClientURI
Improvements:
2.11.1
Java Driver 2.11.1 (April 8, 2013)
The 2.11.1 Java driver fixes a regression introduced in 2.11.0 that can affect clients that authenticate against sharded clusters.
Downloads
maven central and
driver-downloads.mongodb.org
###Docs
http://api.mongodb.org/java/2.11.1/
Bugs:
- JAVA-793: Race condition in com.mongodb.DBTCPConnector#authenticate method
Improvements
- JAVA-802: Use $query and $orderby in query document instead of query and orderby
2.11.0
Java Driver 2.11.0 (March 19, 2013)
The 2.11.0 Java driver fully supports the MongoDB 2.4 security enhancements, which include:
- Kerberos authentication
- Server documentation is available here: http://docs.mongodb.org/manual/tutorial/control-access-to-mongodb-with-kerberos-authentication/.
- Driver documentation is available here: http://docs.mongodb.org/ecosystem/tutorial/authenticate-with-java-driver/
- Role-based access control
- Server documentation is available here: http://docs.mongodb.org/manual/release-notes/2.4/#role-based-access-control-and-new-privilege-documents
Downloads
maven central and
driver-downloads.mongodb.org
Docs
http://api.mongodb.org/java/2.11.0/
New Features:
- JAVA-691: Authentication enhancements
- JAVA-431: the find() method of GridFS should allow specification of sort criteria
Improvements:
- JAVA-673: MongoURI should allow configuring default SSL socket factory
- JAVA-725: Deprecate MongoURI, MongoOptions, and Mongo constructors
- JAVA-728: Improve logging of Mongo instance construction
- JAVA-733: JSON.parse() should handle $binary object correctly
- JAVA-734: JSON.parse() should handle $timestamp correctly
- JAVA-735: Binary class should implements Equals and HashCode
- JAVA-741: Ability to disable validation for illegal characters in keys
- JAVA-743: JSONCallback should apply decoding hooks for all supported types
- JAVA-744: Add convenience methods for MongoClientOptions
- JAVA-757: Exceptions throws for GLE should contain the entire GLE document
- JAVA-768: Use ReadPreference.primaryPreferred() for authentication
- JAVA-780: Expose MongoClientURI constructor for overriding default options
- JAVA-785: Improve logging of socket errors
Bugs fixes:
- JAVA-595: With redeploy web app created a ThreadLocal but failed to remove it when the web application was stopped
- JAVA-641: JMX registration error
- JAVA-657: ReadPrefs ignored for some commands due to case-sensitive comparison
- JAVA-703: GridFS List find( DBObject query ,...) should close cursor
- JAVA-705: Query commands like aggregate and mapReduce don't pick up the read preference set on the collection
- JAVA-708: ReadPreference.nearest() does not count primary in expected way
- JAVA-720: DBCursor.next() throws the wrong Exception
- JAVA-722: Errors when DBRef's $id is Object instead of simple value
- JAVA-753: Java Driver sending reads with NEAREST preference to nodes in RECOVERING state
- JAVA-772: If cursor is not found by the server, report in the exception the cursor that was requested
- JAVA-787: DBTCPConnector._checkWriteError () consume a PoolOutputBuffer not returned to SimplePool
2.10.1
Java Driver 2.10.1 (December 3, 2012)
Bug fixes:
- JAVA-706: Aggregate and mapReduce commands sent to mongos break when setting read preference
###Downloads
github and maven central
###Tickets
Jira release notes
2.10.0
Java Driver 2.10.0 (November 27, 2012)
Highlights:
- JAVA-682: Add new MongoClient class, to supersede existing Mongo class, with a default WriteConcern.ACKNOWLEDGED (see MongoClient Javadoc
###Downloads
github and maven central
###Tickets
Jira release notes
2.9.3
Java Driver 2.9.3 (October 30, 2012)
This is a recommended update for anyone running with 2.9.2.
Bugs fixed:
- JAVA-680: Secondary reads on lists of mongos fail until first write
###Downloads
github and maven central
###Tickets
Jira release notes
2.9.2
Java Driver 2.9.2 (October 23, 2012)
This is a critical update for anyone running with 2.9.0 or 2.9.1.
Bugs fixed:
- JAVA-660: Concurrency issue can cause corrupted messages to be sent to the server
- JAVA-641: JMX registration error
- JAVA-658: DBTCPConnector ignores readprefs for combination of legacy settings
- JAVA-656: Don't checkMaster on slaveOk queries
- JAVA-666: Don't rely on MXBean
###Downloads
github and maven central
###Tickets
Jira release notes
2.9.1
Java Driver 2.9.1 (September 9, 2012)
Bugs fixed:
- JAVA-633: DBCollection.isCapped() method throws ClassCastException with mongodb-2.2.0
- JAVA-635: SimplePool.permitAcquired method swallows InterruptedException. See MongoInterruptedException
###Downloads
github and maven central
###Tickets
Jira release notes
2.9.0
Java Driver 2.9.0 (August 29, 2012)
Highlights:
- JAVA-474: Enhance read preference support. See ReadPreference Javadoc
- JAVA-381: Support redundant mongos connections. See [Mongo constructor Javadoc](http://api.mongodb.org/java/2.9.0/com/mongodb/Mongo.html#Mongo(java.util.List\))
- JAVA-590: Helper method for aggregation framework. See aggregate method in DBCollection Javadoc
- JAVA-610: Make DBCursor finalizer optional and disable it in all cases where there is no cursor maintained on the server. See MongoOptions Javadoc
- JAVA-613: Expand connection pool JMX stats to include the current operation being executed by each in use connection. See ConnectionPoolStat Javadoc
- JAVA-295: Support Android platform
###Downloads
github and maven central
###Tickets
Jira release notes
2.8.0
Java Driver 2.8.0 (June 18, 2012)
Highlights:
- JAVA-458: With slaveOk, query distribution to slaves is not even
- JAVA-429: Allow DBCollections to be modified using raw/binary BSON.
- JAVA-509: ClassMap synchronization is a major source of contention
- JAVA-249: Java Driver cannot connect to "localhost" when mongod is listening only on 127.0.0.1 (or "localhost")
- JAVA-488: Support serialization to Mongo extended JSON format
- JAVA-561: Add getX with default methods for missing values
- JAVA-332: GridFS: Allow seek/reads (get part of a chunk) on stream interface
- JAVA-272: OSGi Manifest is incorrect
Tickets
Full ticket information can be seen at https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10006&version=10980