Skip to content

Commit 803b0ef

Browse files
authored
DOCSP-33388 Mongos Cursor Results For Non-Existant Dbs (#5244)
* DOCSP-33388 Mongos Cursor Results For Non-Existant Dbs * * * * * * * IR Feedback * *
1 parent 6b786b0 commit 803b0ef

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Starting in MongoDB 7.2, aggregation pipeline queries that attempt to
2+
use non-existent databases on :ref:`mongos <mongos>` deployments return
3+
validation errors.
4+
5+
In previous versions, these aggregation queries return empty cursors.

source/release-notes/7.2.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ New Bulk Write Command
2424

2525
.. include:: /includes/bulkWrite-introduction.rst
2626

27+
.. _7.2-mongos-db-aggregation-validation:
28+
29+
Database Validation on ``mongos`` Aggregation Queries
30+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31+
32+
.. include:: /includes/fact-mongos-db-agg-validation.rst
33+
2734
.. _7.2-rel-notes-serverStatus:
2835

2936
``serverStatus`` Metrics

source/tutorial/iterate-a-cursor.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ in the following example:
200200

201201
myCursor.objsLeftInBatch();
202202

203+
Cursor Results for Non-Existent ``mongos`` Databases
204+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
205+
206+
.. include:: /includes/fact-mongos-db-agg-validation.rst
207+
203208
Cursor Information
204209
------------------
205210

0 commit comments

Comments
 (0)