From faf6680c845f8ac69069b1eb6cc0ea8fa2ac26a0 Mon Sep 17 00:00:00 2001 From: ian fogelman Date: Wed, 6 Oct 2021 12:18:15 -0400 Subject: [PATCH] DOCS-14815 5.1 setWindowFields restriction updates --- .../fact-5.1-setWindowFields-snapshot-restriction.rst | 3 +++ source/reference/operator/aggregation/setWindowFields.txt | 6 ++++++ source/release-notes/5.1-compatibility.txt | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 source/includes/fact-5.1-setWindowFields-snapshot-restriction.rst diff --git a/source/includes/fact-5.1-setWindowFields-snapshot-restriction.rst b/source/includes/fact-5.1-setWindowFields-snapshot-restriction.rst new file mode 100644 index 00000000000..2073f79fb26 --- /dev/null +++ b/source/includes/fact-5.1-setWindowFields-snapshot-restriction.rst @@ -0,0 +1,3 @@ +Starting in MongoDB 5.1 (and 5.0.4), the :pipeline:`$setWindowFields` +stage cannot be used within :doc:`transactions ` +or with :readconcern:`"snapshot"` read concern. \ No newline at end of file diff --git a/source/reference/operator/aggregation/setWindowFields.txt b/source/reference/operator/aggregation/setWindowFields.txt index bf3cd10ef0f..5ab7d957dc8 100644 --- a/source/reference/operator/aggregation/setWindowFields.txt +++ b/source/reference/operator/aggregation/setWindowFields.txt @@ -242,6 +242,12 @@ Restrictions Restrictions for the :pipeline:`$setWindowFields` stage: +- Starting in MongoDB 5.1 (and 5.0.4), the :pipeline:`$setWindowFields` + stage cannot be used: + + - Within :doc:`transactions `. + - With :readconcern:`"snapshot"` read concern. + - :ref:`sortBy ` is required for: - :ref:`Rank ` and :ref:`order diff --git a/source/release-notes/5.1-compatibility.txt b/source/release-notes/5.1-compatibility.txt index f2ae3937647..f06bb4dd442 100644 --- a/source/release-notes/5.1-compatibility.txt +++ b/source/release-notes/5.1-compatibility.txt @@ -35,6 +35,11 @@ Removed Parameters Aggregation ----------- +``$setWindowFields`` Transactions and Snapshot Read Concern +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. include:: /includes/fact-5.1-setWindowFields-snapshot-restriction.rst + Removed Index Types -------------------