Navigation

Release Notes for MongoDB 2.6

On this page

  • Minor Releases
  • Major Changes
  • Security Improvements
  • Query Engine Improvements
  • Improvements
  • Operational Changes
  • MongoDB Enterprise Features
  • Additional Information

April 8, 2014

MongoDB 2.6 is now available. Key features include aggregation enhancements, text-search integration, query-engine improvements, a new write-operation protocol, and security enhancements.

  • Fixed issue with MMAPv1 journaling where the "last sequence number" file (lsn file) may be ahead of what is synced to the data files: SERVER-22261.
  • Fixed issue that permitted the creation of new role with the same name as a built-in role: SERVER-19284.
  • Fixed issue where some index operations running during an active migration may cause the migration operation to skip some documents: SERVER-22535.
  • All issues closed in 2.6.12
  • Fix for text index where under specific circumstances, in-place updates to a text-indexed field may result in incorrect/incomplete results SERVER-14738
  • Check the size of the split point before performing a manual split chunk operation SERVER-14431
  • Ensure read preferences are re-evaluated by drawing secondary connections from a global pool and releasing back to the pool at the end of a query/command SERVER-9788
  • Allow read from secondaries when both audit and authorization are enabled in a sharded cluster SERVER-14170
  • All issues closed in 2.6.4
  • Equality queries on _id with projection may return no results on sharded collections SERVER-14302.
  • Equality queries on _id with projection on _id may return orphan documents on sharded collections SERVER-14304.
  • All issues closed in 2.6.3.

The following changes in MongoDB affect both the standard and Enterprise editions:

The aggregation pipeline adds the ability to return result sets of any size, either by returning a cursor or writing the output to a collection. Additionally, the aggregation pipeline supports variables and adds new operations to handle sets and redact data.

Text search is now enabled by default, and the query system, including the aggregation pipeline $match stage, includes the $text operator, which resolves text-search queries.

MongoDB 2.6 includes an updated text index format and deprecates the text command.

Improvements to the update and insert systems include additional operations and improvements that increase consistency of modified data.

Tip
See also:

A new write protocol integrates write operations with write concerns. The protocol also provides improved support for bulk operations.

MongoDB 2.6 adds the write commands insert, update, and delete, which provide the basis for the improved bulk insert. All officially supported MongoDB drivers support the new write commands.

The mongo shell now includes methods to perform bulk-write operations. See Bulk() for more information.

MongoDB now distributes MSI packages for Microsoft Windows. This is the recommended method for MongoDB installation under Windows.

MongoDB 2.6 enhances support for secure deployments through improved SSL support, x.509-based authentication, an improved authorization system with more granular controls, as well as centralized credential storage, and improved user management tools.

Specifically these changes include:

  • Background index build allowed on secondaries. If you initiate a background index build on a primary, the secondaries will replicate the index build in the background.
  • Automatic rebuild of interrupted index builds after a restart.

    • If a standalone or a primary instance terminates during an index build without a clean shutdown, mongod now restarts the index build when the instance restarts. If the instance shuts down cleanly or if a user kills the index build, the interrupted index builds do not automatically restart upon the restart of the server.
    • If a secondary instance terminates during an index build, the mongod instance will now restart the interrupted index build when the instance restarts.

    To disable this behavior, use the --noIndexBuildRetry command-line option.

  • ensureIndex() now wraps a new createIndex command.
  • The dropDups option to ensureIndex() and createIndex is deprecated.

MongoDB 2.6 supports a YAML-based configuration file format in addition to the previous configuration file format. See the documentation of the Configuration File for more information.

usePowerOf2Sizes is now the default allocation strategy for all new collections. The new allocation strategy uses more storage relative to total document size but results in lower levels of storage fragmentation and more predictable storage capacity planning over time.

To use the previous exact-fit allocation strategy:

See /core/storage for more information about MongoDB's storage system.

The following changes are specific to MongoDB Enterprise Editions:

MongoDB Enterprise for Windows is now available. It includes support for Kerberos, SSL, and SNMP.

MongoDB Enterprise for Windows does not include LDAP support for authentication. However, MongoDB Enterprise for Linux supports using LDAP authentication with an ActiveDirectory server.

MongoDB Enterprise for Windows includes OpenSSL version 1.0.1g.

MongoDB Enterprise adds auditing capability for mongod and mongos instances. See Auditing for details.

MongoDB Enterprise provides support for proxy authentication of users. This allows administrators to configure a MongoDB cluster to authenticate users by proxying authentication requests to a specified Lightweight Directory Access Protocol (LDAP) service. See Authenticate Using SASL and LDAP with OpenLDAP and Authenticate Using SASL and LDAP with ActiveDirectory for details.

MongoDB Enterprise for Windows does not include LDAP support for authentication. However, MongoDB Enterprise for Linux supports using LDAP authentication with an ActiveDirectory server.

MongoDB does not support LDAP authentication in mixed sharded cluster deployments that contain both version 2.4 and version 2.6 shards. See Upgrade MongoDB to 2.6 for upgrade instructions.

MongoDB Enterprise has greatly expanded its SNMP support to provide SNMP access to nearly the full range of metrics provided by db.serverStatus().

Tip
See also:

Some changes in 2.6 can affect compatibility and may require user actions. The 2.6 mongo shell provides a db.upgradeCheckAllDBs() method to perform a check for upgrade preparedness for some of these changes.

See Compatibility Changes in MongoDB 2.6 for a detailed list of compatibility changes.

See Upgrade MongoDB to 2.6 for full upgrade instructions.

To download MongoDB 2.6, go to the downloads page.

Give Feedback

On this page

  • Minor Releases
  • Major Changes
  • Security Improvements
  • Query Engine Improvements
  • Improvements
  • Operational Changes
  • MongoDB Enterprise Features
  • Additional Information