File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ New Bulk Write Command
24
24
25
25
.. include:: /includes/bulkWrite-introduction.rst
26
26
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
+
27
34
.. _7.2-rel-notes-serverStatus:
28
35
29
36
``serverStatus`` Metrics
Original file line number Diff line number Diff line change @@ -200,6 +200,11 @@ in the following example:
200
200
201
201
myCursor.objsLeftInBatch();
202
202
203
+ Cursor Results for Non-Existent ``mongos`` Databases
204
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
205
+
206
+ .. include:: /includes/fact-mongos-db-agg-validation.rst
207
+
203
208
Cursor Information
204
209
------------------
205
210
You can’t perform that action at this time.
0 commit comments