- Release Notes for MongoDB 2.4
- Minor Releases
- 2.4.14 – April 28, 2015
- 2.4.13 – February 25, 2015
- 2.4.12 – October 16, 2014
- 2.4.11 – August 18, 2014
- 2.4.10 – April 4, 2014
- 2.4.9 – January 10, 2014
- 2.4.8 – November 1, 2013
- 2.4.7 – October 21, 2013
- 2.4.6 – August 20, 2013
- 2.4.5 – July 3, 2013
- 2.4.4 – June 4, 2013
- 2.4.3 – April 23, 2013
- 2.4.2 – April 17, 2013
- 2.4.1 – April 17, 2013
- Major New Features
- Security Enhancements
- Performance Improvements
- Enterprise
- Additional Information
- Minor Releases
Release Notes for MongoDB 2.4
March 19, 2013
MongoDB 2.4 includes enhanced geospatial support, switch to V8 JavaScriptengine, security enhancements, and text search (beta) and hashed index.
Minor Releases
2.4.14 – April 28, 2015
- Init script sets process ulimit to different value compared todocumentation SERVER-17780
- Compute BinData length in v8 SERVER-17647
- Upgrade PCRE Version from 8.30 to Latest SERVER-17252
- 2.4.14 Changelog.
- All 2.4.14 improvements.
2.4.13 – February 25, 2015
- Enforce BSON BinData length validation SERVER-17278
- Disable SSLv3 ciphers SERVER-15673
- Improve BSON validation SERVER-17264
- 2.4.13 Changelog.
- All 2.4.13 improvements.
2.4.12 – October 16, 2014
- Partially written journal last section causes recovery to fail SERVER-15111.
- Explicitly zero
.ns
files on creation SERVER-15369. - 2.4.12 Changelog.
- All 2.4.12 improvements.
2.4.11 – August 18, 2014
- Fixed potential information leak: SERVER-14268.
- Resolved issue were an
_id
with a$prefix
field causedreplication failure due to unvalidated insert SERVER-12209. - Addressed issue where updates to documents with text-indexed fieldscould lead to incorrect entries SERVER-14738.
- Resolved issue where creating descending index on
_id
couldcorrupt namespace SERVER-14833. - 2.4.11 Changelog.
- All 2.4.11 improvements.
2.4.10 – April 4, 2014
- Performs fast file allocation on Windows when available SERVER-8480.
- Start elections if more than one primary is detected SERVER-10793.
- Changes to allow safe downgrading from v2.6 to v2.4 SERVER-12914, SERVER-12175.
- Fixes for edge cases in index creation SERVER-12481, SERVER-12956.
- 2.4.10 Changelog.
- All 2.4.10 improvements.
2.4.9 – January 10, 2014
- Fix for instances where
mongos
incorrectly reports asuccessful write SERVER-12146. - Make non-primary read preferences consistent with
slaveOK
versioning logic SERVER-11971. - Allow new sharded cluster connections to read from secondaries whenprimary is down SERVER-7246.
- All 2.4.9 improvements.
2.4.8 – November 1, 2013
- Increase future compatibility for 2.6 authorization featuresSERVER-11478.
- Fix
dbhash
cache issue for config serversSERVER-11421. - All 2.4.8 improvements.
2.4.7 – October 21, 2013
- Fixed over-aggressive caching of V8 Isolates SERVER-10596.
- Removed extraneous initial count during mapReduceSERVER-9907.
- Cache results of dbhash command SERVER-11021.
- Fixed memory leak in aggregation SERVER-10554.
- All 2.4.7 improvements.
2.4.6 – August 20, 2013
- Fix for possible loss of documents during the chunk migration processif a document in the chunk is very large SERVER-10478.
- Fix for C++ client shutdown issues SERVER-8891.
- Improved replication robustness in presence of high network latencySERVER-10085.
- Improved Solaris support SERVER-9832, SERVER-9786,and SERVER-7080.
- All 2.4.6 improvements.
2.4.5 – July 3, 2013
- Fix for CVE-2013-4650 Improperly grant user system privileges ondatabases other than local SERVER-9983.
- Fix for CVE-2013-3969 Remotely triggered segmentation fault in Javascript engineSERVER-9878.
- Fix to prevent identical background indexes from being builtSERVER-9856.
- Config server performance improvements SERVER-9864 andSERVER-5442.
- Improved initial sync resilience to network failure SERVER-9853.
- All 2.4.5 improvements.
2.4.4 – June 4, 2013
- Performance fix for Windows version SERVER-9721
- Fix for config upgrade failure SERVER-9661.
- Migration to Cyrus SASL library for MongoDB Enterprise SERVER-8813.
- All 2.4.4 improvements.
2.4.3 – April 23, 2013
- Fix for
mongo
shell ignoring modified object’s_id
fieldSERVER-9385. - Fix for race condition in log rotation SERVER-4739.
- Fix for
copydb
command with authorization in a sharded clusterSERVER-9093. - All 2.4.3 improvements.
2.4.2 – April 17, 2013
- Several V8 memory leak and performance fixes SERVER-9267 andSERVER-9230.
- Fix for upgrading sharded clusters SERVER-9125.
- Fix for high volume connection crash SERVER-9014.
- All 2.4.2 improvements
2.4.1 – April 17, 2013
- Fix for losing index changes during initial sync SERVER-9087
- All 2.4.1 improvements.
Major New Features
The following changes in MongoDB affect both standard and Enterpriseeditions:
Text Search
Add support for text search of content in MongoDB databases as abeta feature. See Text Indexes for more information.
Geospatial Support Enhancements
- Add new 2dsphere index. The new indexsupports GeoJSON objects
Point
,LineString
, andPolygon
. See2dsphere Indexes and Geospatial Queries. - Introduce operators
$geometry
,$geoWithin
and$geoIntersects
to work with the GeoJSON data.
Hashed Index
Add new hashed index to index documentsusing hashes of field values. When used to index a shard key, thehashed index ensures an evenly distributed shard key. See alsoHashed Sharding.
Improvements to the Aggregation Framework
- Improve support for geospatial queries. See the
$geoWithin
operator and the$geoNear
pipelinestage. - Improve sort efficiency when the
$sort
stage immediatelyprecedes a$limit
in the pipeline. - Add new operators
$millisecond
and$concat
and modify how$min
operator processesnull
values.
Changes to Update Operators
- Add new
$setOnInsert
operator for use withupsert
. - Enhance functionality of the
$push
operator, supportingits use with the$each
, the$sort
, and the$slice
modifiers.
Additional Limitations for Map-Reduce and $where Operations
The mapReduce
command, group command, andthe $where
operator expressions cannot access certainglobal functions or properties, such as db
, that are availablein the mongo
shell. See the individual command oroperator for details.
Improvements to serverStatus Command
Provide additional metrics and customization for theserverStatus
command. See db.serverStatus()
and serverStatus
for more information.
Security Enhancements
- Introduce a role-based access control systemUser Privileges now use a newformat for Privilege Documents.
- Enforce uniqueness of the user in user privilege documents perdatabase. Previous versions of MongoDB did not enforce thisrequirement, and existing databases may have duplicates.
- Support encrypted connections using SSL certificates signed by aCertificate Authority. See Configure mongod and mongos for TLS/SSL.
For more information on security and risk management strategies, seeMongoDB Security Practices and Procedures.
Performance Improvements
V8 JavaScript Engine
- JavaScript Changes in MongoDB 2.4
Change default JavaScript engine from SpiderMonkey to V8. The changeprovides improved concurrency for JavaScript operations, modernizedJavaScript implementation, and the removal of non-standardSpiderMonkey features, and affects all JavaScript behavior includingthe commands mapReduce
, group, andeval
and the query operator $where
.
See JavaScript Changes in MongoDB 2.4 for more information aboutall changes .
BSON Document Validation Enabled by Default for mongod and mongorestore
Enable basic BSON object validation for mongod
and mongorestore
when writing to MongoDB data files. SeewireObjectCheck
for details.
Index Build Enhancements
- Add support for multiple concurrent index builds in the background bya single
mongod
instance. See building indexes inthe background for more information onbackground index builds. - Allow the
db.killOp()
method to terminate a foregroundindex build. - Improve index validation during index creation. SeeCompatibility and Index Type Changes in MongoDB 2.4 for more information.
Set Parameters as Command Line Options
Provide —setParameter
as a command line option formongos
and mongod
. See mongod
andmongos
for list of available options forsetParameter
.
Changed Replication Behavior for Chunk Migration
By default, each document move during chunk migration in a sharded cluster propagates toat least one secondary before the balancer proceeds with its nextoperation. See Chunk Migration and Replication.
Improved Chunk Migration Queue Behavior
Increase performance for moving multiple chunks off an overloadedshard. The balancer no longer waits for the current migration’sdelete phase to complete before starting the next chunk migration.See Asynchronous Chunk Migration Cleanup for details.
Enterprise
The following changes are specific to MongoDB Enterprise Editions:
SASL Library Change
In 2.4.4, MongoDB Enterprise uses Cyrus SASL. Earlier 2.4 Enterpriseversions use GNU SASL (libgsasl
). To upgrade to 2.4.4 MongoDBEnterprise or greater, you must install all package dependenciesrelated to this change, including the appropriate Cyrus SASL GSSAPI
library. See Install MongoDB Enterprise for details ofthe dependencies.
New Modular Authentication System with Support for Kerberos
In 2.4, the MongoDB Enterprise now supports authentication via aKerberos mechanism. SeeConfigure MongoDB with Kerberos Authentication on Linuxfor more information. For drivers that provide support forKerberos authentication to MongoDB, refer to Driver Support.
For more information on security and risk management strategies, seeMongoDB Security Practices and Procedures.
Additional Information
Platform Notes
For macOS, MongoDB 2.4 only supports macOS versions 10.6 (Snow Leopard)and later. There are no other platform support changes in MongoDB2.4. See the downloads page formore information on platform support.
Upgrade Process
- Upgrade MongoDB to 2.4
- Upgrade Recommendations and Checklist
- Upgrade Standalone
mongod
Instance to MongoDB 2.4 - Upgrade a Replica Set from MongoDB 2.2 to MongoDB 2.4
- Upgrade a Sharded Cluster from MongoDB 2.2 to MongoDB 2.4
- Rolling Upgrade Limitation for 2.2.0 Deployments Running with
auth
Enabled - Upgrade from 2.3 to 2.4
- Downgrade MongoDB from 2.4 to Previous Versions
- Compatibility and Index Type Changes in MongoDB 2.4
See Upgrade MongoDB to 2.4 for full upgrade instructions.
Other Resources
- MongoDB Downloads.
- All JIRA issues resolved in 2.4.
- All Backwards incompatible changes%20AND%20%22Backwards%20Compatibility%22%20in%20(%22Major%20Change%22%2C%22Minor%20Change%22%20)%20ORDER%20BY%20votes%20DESC%2C%20issuetype%20DESC%2C%20key%20DESC).
- All Third Party License Notices.