From a58fce811a636ffc7bee135e5bd3f9c87aef04d3 Mon Sep 17 00:00:00 2001 From: ian fogelman Date: Mon, 30 Aug 2021 12:34:44 -0400 Subject: [PATCH] DOCS-14433 config.transactions read concern disallowed --- .../fact-5.0-non-transactional-config-reads.rst | 10 ++++++++++ source/reference/config-database.txt | 2 ++ source/release-notes/5.0-compatibility.txt | 5 +++++ source/release-notes/5.0.txt | 5 +++++ 4 files changed, 22 insertions(+) create mode 100644 source/includes/fact-5.0-non-transactional-config-reads.rst diff --git a/source/includes/fact-5.0-non-transactional-config-reads.rst b/source/includes/fact-5.0-non-transactional-config-reads.rst new file mode 100644 index 00000000000..a1fe1c0738c --- /dev/null +++ b/source/includes/fact-5.0-non-transactional-config-reads.rst @@ -0,0 +1,10 @@ +Starting in MongoDB 5.0, non-transaction reads are not allowed on +the :data:`config.transactions` collection with the following +read concerns and options: + +- :readconcern:`"snapshot"` +- :readconcern:`"majority"` and the + :ref:`afterClusterTime` option is set +- When using a :driver:`MongoDB Driver ` + and :readconcern:`"majority"` + within a :ref:`causally consistent session` \ No newline at end of file diff --git a/source/reference/config-database.txt b/source/reference/config-database.txt index e733bc179f1..cafd1e88efa 100644 --- a/source/reference/config-database.txt +++ b/source/reference/config-database.txt @@ -26,6 +26,8 @@ The collections in the ``config`` database support: Restrictions ------------ +.. include:: /includes/fact-5.0-non-transactional-config-reads.rst + .. important:: The schema of the ``config`` database is *internal* and may change between releases of MongoDB. The ``config`` database is not a dependable API, and users should not diff --git a/source/release-notes/5.0-compatibility.txt b/source/release-notes/5.0-compatibility.txt index def454a00be..41d032dca77 100644 --- a/source/release-notes/5.0-compatibility.txt +++ b/source/release-notes/5.0-compatibility.txt @@ -153,6 +153,11 @@ Replica Sets Starting in MongoDB 5.0, :rsconf:`~members[n].secondaryDelaySecs` replaces ``slaveDelay``. This change is not backwards compatible. +Non-transactional Reads on ``config.transactions`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. include:: /includes/fact-5.0-non-transactional-config-reads.rst + Manual Oplog Writes ~~~~~~~~~~~~~~~~~~~ diff --git a/source/release-notes/5.0.txt b/source/release-notes/5.0.txt index 0355a92cde1..39bdcaed208 100644 --- a/source/release-notes/5.0.txt +++ b/source/release-notes/5.0.txt @@ -370,6 +370,11 @@ Starting in MongoDB 5.0, these database commands and Replica Sets ------------ +Non-transactional Reads on ``config.transactions`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. include:: /includes/fact-5.0-non-transactional-config-reads.rst + ``hello`` Command ~~~~~~~~~~~~~~~~~