Release Notes - Amazon DocumentDB

Release Notes

These release notes describe the Amazon DocumentDB features, improvements, and bug fixes by release date. The release notes include updates for all Amazon DocumentDB engine versions as they occur.

You can determine the current Amazon DocumentDB engine version by running the following command:

db.runCommand({getEngineVersion: 1})

If your cluster is not on the latest version of the engine, it is likely that you have pending maintenance available that will upgrade your engine. For more information, see Maintaining Amazon DocumentDB in the Developer Guide.

June 7, 2023

Bug Fixes and Other Changes

Amazon DocumentDB 5.0 (Engine Version 3.0.1361)

  • r5 and t3.medium instances are now supported in Amazon DocumentDB 5.0.

  • engineVersion option default is 5.0.0 in AWS SDK, AWS CLI, and AWS CloudFormation.

May 10, 2023

Bug Fixes and Other Changes

Amazon DocumentDB 5.0 (Engine Version 3.0.1361)

  • Added support for ignoreunknownindexoptions in the createIndex command.

  • Stopped adding internal monitoring queries to auditing logs.

April 4, 2023

Bug Fixes and Other Changes

Amazon DocumentDB 4.0 (Engine Version 2.0.8934)

  • Fixed issue with DML auditing when it is enabled during an ongoing workload.

  • Fixed issue with DML auditing when aggregate commands with hint is passed a string value.

  • Fixed issue with listCollections command not working when users with readwriteanydatabase role having both authorizedCollections and nameOnly options set to true.

  • Fixed issue to properly parse numeric string in a field name.

  • Cancel long running cursors when they are impacting garbage collection.

March 22, 2023

New Features

Amazon DocumentDB elastic clusters are now available in the Asia Pacific (Singapore), Asia Pacific (Sydney), and Asia Pacific (Tokyo) regions. For more information, see Elastic cluster region and version availability.

March 1, 2023

New Features

Amazon DocumentDB 5.0 (Engine Version 3.0.775)

  • Introduced Amazon DocumentDB 5.0

    • MongoDB 5.0 compatibility (support for MongoDB 5.0 API drivers)

    • Support for Client-side Field Level Encryption (FLE). You can now encrypt fields at the client-side before writing the data to Amazon DocumentDB cluster. For more information, see Client-side field level encryption

    • New aggregation operators: $dateAdd, $dateSubtract

  • Increased storage limit to 128 TiB for all instance-based Amazon DocumentDB clusters and shard-based elastic clusters.

  • Amazon DocumentDB 5.0 now supports index scan with the $elemMatch operator in the first nesting level. Index scans are supported when query only have one level of the $elemMatch filter and the nested $elemMatch query does not support index scan.

    Query shape that supports index scan:

    db.foo.find( { "a": {$elemMatch: { "b": "xyz", "c": "abc"} } })

    Query shape that does not support index scan:

    db.foo.find( { "a": {$elemMatch: { "b": {$elemMatch: { "d": "xyz", "e": "abc"} }} } })

February 27, 2023

Bug Fixes and Other Changes

Amazon DocumentDB 4.0 (Engine Version 2.0.7509)

Added support for AWS Lambda. For more information, see Using AWS Lambda with Change Streams.

February 2, 2023

Bug Fixes and Other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.208432)

  • Fixed issue with DML auditing when it is enabled during an ongoing workload.

  • Fixed issue with DML auditing when aggregate commands with hint is passed a string value.

  • Fixed issue with listCollections command not working when users with readwriteanydatabase role having both authorizedCollections and nameOnly options set to true.

  • Fixed issue to properly parse numeric string in a field name.

  • Cancel long running cursors when they are impacting garbage collection.

November 30, 2022

New Features

Amazon DocumentDB 4.0 (Engine Version 2.0.7509)

Amazon DocumentDB elastic clusters is a new type of Amazon DocumentDB cluster that enables users to leverage the MongoDB sharding APIs to scale out their cluster. Elastic clusters handle virtually any number of reads and writes with petabytes of storage capacity by distributing the data and compute across multiple underlying compute instances and volumes. To learn more, see Using Amazon DocumentDB elastic clusters.

August 9, 2022

New Features

Amazon DocumentDB 3.6 (Engine Version 1.0.208152) and 4.0 (Engine Version 2.0.7509)

  • Added support for Decimal128 data type. The Decimal128 is a BSON data type supported in all regions where DocumentDB is available.

    For more information, see Data Types.

  • Added support for DML query auditing with Amazon CloudWatch Logs. Now Amazon DocumentDB can record Data Manipulation Language (DML) events and Data Definition Language (DDL) events to Amazon CloudWatch Logs.

    For more information, see this blog post.

Bug Fixes and other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.208152) and 4.0 (Engine Version 2.0.7509)

  • You can now change your own passwoprd with own password with changeOwnPassword privilege.

July 25, 2022

New Features

Amazon DocumentDB 4.0 (Engine Version 2.0.7509)

You can now create clusters faster with the ability to create clones that use the same DocumentDB cluster volume and have the same data as the original cluster. For details, see Managing Amazon DocumentDB Clusters.

June 27, 2022

New Features

Amazon DocumentDB 4.0 (Engine Version 2.0.7509)

Amazon DocumentDB dynamically resizes your database based on usage patterns. Adding more data increases the space up to 64 Tebibytes (TiB) and deleting data decreases allotted space.

April 29, 2022

New Features

Amazon DocumentDB is now available in China (Beijing) region. For more information, see this blog post.

April 7, 2022

New Features

Amazon DocumentDB 3.6 (Engine Versions 1.0.207836 and 1.0.208015) and 4.0 (Engine Versions 2.0.6142 and 2.0.6948)

Amazon DocumentDB Performance Insights is now in preview. You can now store seven days of performance history in a rolling window at no additional cost. For more information, see Monitoring with Performance Insights.

March 16, 2022

New Features

Amazon DocumentDB is now available in Europe (Milan) region. For more information, see this blog post.

February 8, 2022

New Features

Amazon DocumentDB R6g and T4g instances are now available in Asia Pacific, South America, and Europe. For more information, see this blog post.

January 24, 2022

New Features

Amazon DocumentDB 3.6 (Engine Version 1.0.207684) and 4.0 (Engine Version 2.0.5170)

January 21, 2022

New Features

Amazon DocumentDB 4.0 (Engine Version 2.0.5706)

  • Amazon DocumentDB Graviton2 (r6g.large, r6g.2xlarge, r6g.4xlarge, r6g.8xlarge, r6g.12xlarge, r6g.16xlarge and t4g.medium) instances are now supported

Amazon DocumentDB 3.6 (Engine Version 1.0.207781) and 4.0 (Engine Version 2.0.5706)

  • Added support for the following MongoDB APIs:

    • $reduce

    • $mergeObjects

    • $geoWithin

    • $geoIntersects

October 25, 2021

New Features

Amazon DocumentDB 3.6 (Engine Version 1.0.207780) and 4.0 (Engine Version 2.0.5704)

  • Added support for the following MongoDB APIs

    • $literal

    • $map

    • $$ROOT

  • Support for GeoSpatial Query capabilities. See this blog post for more details

  • Support for access control with user-defined roles. See this blog post for more details

  • Amazon DocumentDB JDBC Driver to enable connectivity from BI tools such as Tableau and query tools such as SQL Workbench

Bug fixes and other changes

Amazon DocumentDB 3.6 (Engine Version 1.0.207780) and 4.0 (Engine Version 2.0.5704)

  • Bug fix for $natural to sort correctly when an explicit .sort() is present along with $natural

  • Bug fix for change stream to work with $redact

  • Bug fix for $ifNull to work with empty array

  • Bug fix for excessive resource consumption/server crash when a currently logged-in user is deleted or that user’s privilege for an ongoing activity is revoked

  • Bug fix in listDatabase and listCollection privilege check

  • Bug Fix dedupe logic for multi-key elements

June 24, 2021

New Features

Amazon DocumentDB 3.6 (Engine Version 1.0.207117) and 4.0 (Engine Version 2.0.3371)

May 4, 2021

New Features

See all the new features in this blog post.

Amazon DocumentDB 3.6 (Engine Version 1.0.207117) and 4.0 (Engine Version 2.0.3371)

  • renameCollection

  • $zip

  • $indexOfArray

  • $reverseArray

  • $natural

  • $hint support for update

  • Index scan for distinct

Bug fixes and other changes

Amazon DocumentDB 3.6 (Engine Version 1.0.207117) and 4.0 (Engine Version 2.0.3371)

  • Reduced memory usage for $in queries

  • Fixed a memory leak in multikey indexes

  • Fixed the explain plan and profiler output for $out

  • Added a timeout for operations from internal monitoring system to improve reliability

  • Fixed a defect impacting the query predicates passed to multikey indexes

January 15, 2021

New Features

Amazon DocumentDB 4.0 (Engine Version 2.0.722)

  • None

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • Ability to use an index with the $lookup aggregation stage

  • find() queries with projections can be served direction from an index (covered query)

  • Ability to use hint() with the findAndModify

  • Performance optimizations for $addToSet operator

  • Improvements to reduce overall index sizes

  • New aggregation operators: $ifNull, $replaceRoot, $setIsSubset, $setInstersection, $setUnion, and $setEquals

  • Users can also end their own cursors without requiring the KillCursor role

November 9, 2020

New Features

See all the new features in this blog post.

Amazon DocumentDB 4.0 (Engine Version 2.0.722)

  • MongoDB 4.0 compatibility

  • ACID transactions

  • Support for cluster(client.watch() or mongo.watch()) and the database level (db.watch()) change streams

  • Ability to start or resume a change streams using startAtOperationTime

  • Extend your change stream retention period to 7 days (previously 24 hours)

  • AWS DMS target for Amazon DocumentDB 4.0

  • CloudWatch metrics: TransactionsOpen, TransactionsOpenMax, TransactionsAborted, TransactionsStarted, and TransactionsCommitted

  • New fields for transactions in currentOp, ServerStatus, and profiler.

  • Ability to use an index with the $lookup aggregation stage

  • find() queries with projections can be served direction from an index (covered query)

  • Ability to use hint() with the findAndModify

  • Performance optimizations for $addToSet operator

  • Improvements to reduce overall index sizes.

  • New aggregation operators: $ifNull, $replaceRoot, $setIsSubset, $setInstersection, $setUnion, and $setEquals

  • With the ListCollection and ListDatabase commands, you can now optionally use the authorizedCollections and authorizedDatabases parameters to allow users to list the collections and databases that they have permission to access without requiring the listCollections and listDatabase roles, respectively

  • Users can also end their own cursors without requiring the KillCursor role

  • Comparing numeric types of subdocuments is now consistent with comparing numeric types of first-level documents. The behavior in Amazon DocumentDB 4.0 is now compatible with MongoDB.

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • None

Bug Fixes and Other Changes

Amazon DocumentDB 4.0 (Engine Version 2.0.722)

  • $setOnInsert no longer allow updates when using the positional operator $. The behavior in Amazon DocumentDB 4.0 is now compatible with MongoDB.

  • Fixed issue with $createCollection and set autoIndexId

  • Projection for nested documents

  • Changed default setting for working memory to scale with instance memory size

  • Garbage collection improvements

  • Lookup with empty key in path, behavior difference with mongo

  • Fixed dateToString bug in timezone behavior

  • Fixed $push (aggregation) to respect sort order

  • Fixed bug in $currentOp with aggregate

  • Fixed issue with readPreference on secondary

  • Fixed issue with validating $createIndex is the same database as the command was issued

  • Fixed inconsistent behavior for minKey, maxKey lookup fails

  • Fixed issue with $size operator not working with composite array

  • Fixed issue with the negation of $in with regex

  • Fixed issue with $distinct command run against a view

  • Fixed issue with aggregations and find commands sorting missing fields differently

  • Fixed $eq to regular expression not checking type

  • Fixed $currentDate bug in timestamp ordinal position behavior

  • Fixed millisecond granularity for $currentDate

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • None

October 30, 2020

New Features

See all the new features in this blog post.

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • Added the ability to open a change stream cursor at the cluster level (client.watch() or mongo.watch()) and the database (db.watch())

  • Ability to increase the change stream retention period to 7 days(previously 24 hours)

Bug Fixes and Other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • Various general case performance improvements

  • A targeted security improvement

  • Fixed an issue with skip sort on second field of a compound index

  • Enable regular index for equality on single field of a multi-key index (not compound)

  • Fixed authentication race condition

  • Fixed issue that caused an infrequent garbage collection crash

  • RBAC security improvement

  • Added databaseConnectionsMax metric

  • Performance improvements for certain workloads on r5.24xlarge instances

September 22, 2020

New Features

See all the new features in this blog post.

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • $out aggregation stage

  • Increased the maximum number of connections and cursor per instance by as much as 10x

Bug Fixes and Other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • None

July 10, 2020

New Features

See all the new features in this blog post.

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • Cross Region Snapshot Copy

Bug Fixes and Other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • None

June 30, 2020

New Features

See all the new features in this blog post.

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • T3 medium instances

Bug Fixes and Other Changes

Amazon DocumentDB 3.6 (Engine Version 1.0.206295)

  • Idle memory reclamation for t3 instances

  • Authentication improvements

  • Improved SASL authentication performance

  • Fixed currentOp issue when exceeding maximum possible ops

  • Fixed killOps issue for bulk update and delete

  • Improvements to $sample performance with $match

  • Fixed support for $$ in cond case in redact stage

  • Fixed various recurring crash root causes

  • Improvements to TTL sweeping to reduce IOs and latency

  • Optimized memory utilization for $unwind

  • Fixed collection stats race condition with drop index

  • Fixed race condition during concurrent index build

  • Fixed infrequent crash in hash_search in index