Skip to content

Commit 875f8a9

Browse files
authored
DOCSP-34090 cannot use graphLookup in transactions targeting sharded … (#5314)
* DOCSP-34090 cannot use graphLookup in transactions targeting sharded collections * DOCSP-34090 cannot use graphLookup in transactions targeting sharded collections
1 parent 8bb00de commit 875f8a9

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

source/core/transactions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ Restrictions
400400

401401
- .. include:: /includes/extracts/transactions-cross-shard-collection-restriction.rst
402402

403+
- .. include:: /includes/graphLookup-sharded-coll-transaction-note.rst
404+
403405
- For explicit creation of a collection or an index inside a
404406
transaction, the transaction read concern level must be
405407
:readconcern:`"local"`. Explicit creation is through:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
You **cannot** use the ``$graphLookup`` stage within a transaction while
2+
targeting a sharded collection.

source/reference/operator/aggregation/graphLookup.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ Considerations
163163
Sharded Collections
164164
~~~~~~~~~~~~~~~~~~~
165165

166-
Starting in MongoDB 5.1, you can specify :ref:`sharded collections <sharding-sharded-cluster>`
167-
in the ``from`` parameter of :pipeline:`$graphLookup` stages.
166+
Starting in MongoDB 5.1, you can specify :ref:`sharded collections
167+
<sharding-sharded-cluster>` in the ``from`` parameter of
168+
:pipeline:`$graphLookup` stages.
169+
170+
.. include:: /includes/graphLookup-sharded-coll-transaction-note.rst
168171

169172
Max Depth
170173
~~~~~~~~~

source/reference/operator/aggregation/lookup.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,11 @@ Using $lookup </atlas-search/tutorial/lookup-with-search/>`.
498498
Sharded Collections
499499
~~~~~~~~~~~~~~~~~~~
500500

501-
Starting in MongoDB 5.1, you can specify :ref:`sharded collections <sharding-sharded-cluster>`
502-
in the ``from`` parameter of :pipeline:`$lookup` stages.
501+
Starting in MongoDB 5.1, you can specify :ref:`sharded collections
502+
<sharding-sharded-cluster>` in the ``from`` parameter of
503+
:pipeline:`$lookup` stages.
504+
505+
.. include:: /includes/graphLookup-sharded-coll-transaction-note.rst
503506

504507
|sbe-title|
505508
~~~~~~~~~~~

source/release-notes/6.0.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ MongoDB 6.0 introduces the following aggregation operators:
412412

413413
.. include:: /includes/5.1-fact-sharded-lookup-graphlookup.rst
414414

415+
.. include:: /includes/graphLookup-sharded-coll-transaction-note.rst
416+
415417
.. _6.0-rel-notes-change-streams:
416418

417419
Change Streams

0 commit comments

Comments
 (0)