@@ -168,6 +168,11 @@ Automatic Reconfiguration for New Voting Replica Set Members
168
168
169
169
.. include:: /includes/extracts/initial-sync-semantics.rst
170
170
171
+ Removed Customizable Values For getLastErrorDefaults
172
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173
+
174
+ .. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
175
+
171
176
172
177
Read Concern ``snapshot`` on Capped Collections
173
178
-----------------------------------------------
@@ -303,86 +308,103 @@ issued but the server will not abort.
303
308
General Changes
304
309
---------------
305
310
306
- - .. include:: /includes/5.0-changes/no-direct-write-system-views.rst
311
+ Starting in MongoDB 5.0:
312
+
313
+ - For :ref:`featureCompatibilityVersion <view-fcv>` set to ``"5.0"`` or
314
+ greater, users can no longer write directly to the
315
+ :data:`<database>.system.views` collection.
307
316
308
- - Starting in MongoDB 5.0, the :dbcommand:`reIndex` command and the
317
+ - The :dbcommand:`reIndex` command and the
309
318
:method:`db.collection.reIndex()` shell method may only be run on
310
319
:term:`standalone` instances.
311
320
312
- - Starting in MongoDB 5.0, the number of :doc:`aggregation pipeline
313
- stages </reference/operator/aggregation-pipeline>` allowed in a single
321
+ - The number of :doc:`aggregation pipeline stages
322
+ </reference/operator/aggregation-pipeline>` allowed in a single
314
323
pipeline is limited to 1000.
315
324
316
- - Starting in MongoDB 5.0, dropping the final collection in a database
317
- (or dropping the database itself) when
318
- :setting:`~storage.directoryPerDB` or : option:`--directoryperdb` is
319
- enabled deletes the newly empty subdirectory for that database.
325
+ - Dropping the final collection in a database (or dropping the database
326
+ itself) when :setting:`~storage.directoryPerDB` or
327
+ :option:`--directoryperdb` is enabled deletes the newly empty
328
+ subdirectory for that database.
320
329
321
- - Starting in MongoDB 5.0 (and 4.4.3, 4.2.12, 4.0.22, and 3.6.22), the
322
- :expression:`$subtract` aggregation operator will convert the data
330
+ - The :expression:`$subtract` aggregation operator will convert the data
323
331
type of the result if necessary to accurately represent the result
324
- value. See :expression:`$subtract` for the specific conversions.
332
+ value. See :expression:`$subtract` for the specific conversions. This
333
+ change also applies to MongoDB 4.4.3+, 4.2.12+, 4.0.22+, and 3.6.22+.
325
334
326
- - MongoDB 5.0 removes the ``--serviceExecutor`` command-line option and
335
+ - MongoDB removes the ``--serviceExecutor`` command-line option and
327
336
the corresponding ``net.serviceExecutor`` configuration option.
328
337
329
- - Starting in MongoDB 5.0, you may not authenticate as multiple
330
- simultaneous users on the same client session if the
331
- :option:`--apiStrict` option is set. Attempting to
332
- authenticate as a new user while currently logged in as an existing
338
+ - You may not authenticate as multiple simultaneous users on the same
339
+ client session if the :option:`--apiStrict` option is set. Attempting
340
+ to authenticate as a new user while currently logged in as an existing
333
341
user when the :option:`--apiStrict` option is set will generate an
334
342
error message once per authentication attempt. If you are not using
335
343
the :option:`--apiStrict` option, authenticating as a new user while
336
344
currently logged in as an existing user will write a warning to the
337
345
log once per authentication attempt.
338
346
339
- - Starting in MongoDB 5.0, the
340
- :ref:`weights <specify-weights>` option is only allowed
341
- for ``$text`` indexes.
347
+ - The :ref:`weights <specify-weights>` option is only allowed for
348
+ ``$text`` indexes.
349
+
350
+ - You must explicitly set the global default
351
+ :ref:`write concern <write-concern>` before attempting to reconfigure
352
+ a :ref:`non-sharded <sharded-vs-non-sharded-collections>`
353
+ :term:`replica set <replica set>` with a :doc:`configuration
354
+ </reference/replica-configuration>` that would change the implicit
355
+ default write concern. To set the global default write concern, use
356
+ the :dbcommand:`setDefaultRWConcern` command.
342
357
343
- - .. include:: /includes/fact-set-global-write-concern-before-reconfig.rst
344
358
345
359
Deprecations
346
360
~~~~~~~~~~~~
347
361
348
- - :binary:`~bin.mongo`
362
+ .. list-table::
363
+ :widths: 20 80
364
+ :header-rows: 1
365
+
366
+ * - Deprecated
367
+
368
+ - Description
369
+
370
+ * - :binary:`~bin.mongo`
349
371
350
- The legacy ``mongo`` shell has been deprecated in MongoDB v5.0. The
351
- replacement is :binary:`~bin.mongosh`.
372
+ - The legacy ``mongo`` shell has been deprecated in MongoDB v5.0. The
373
+ replacement is :binary:`~bin.mongosh`.
352
374
353
- - :method:`db.printSlaveReplicationInfo()`
375
+ * - :method:`db.printSlaveReplicationInfo()`
354
376
355
- .. include:: /includes/deprecated-db.printSlaveReplicationInfo.rst
377
+ - .. include:: /includes/deprecated-db.printSlaveReplicationInfo.rst
356
378
357
- - :method:`rs.printSlaveReplicationInfo()`
379
+ * - :method:`rs.printSlaveReplicationInfo()`
358
380
359
- .. include:: /includes/deprecated-rs.printSlaveReplicationInfo.rst
381
+ - .. include:: /includes/deprecated-rs.printSlaveReplicationInfo.rst
360
382
361
- - :setting:`security.clusterIpSourceWhitelist`
383
+ * - :setting:`security.clusterIpSourceWhitelist`
362
384
363
- *Deprecated in version 5.0:* Use
364
- :setting:`security.clusterIpSourceAllowlist` instead.
385
+ - *Deprecated in version 5.0:* Use
386
+ :setting:`security.clusterIpSourceAllowlist` instead.
365
387
366
- - :option:`--clusterIpSourceWhitelist`
367
-
368
- *Deprecated in version 5.0:* Use :option:`--clusterIpSourceAllowlist`
369
- instead.
388
+ * - :option:`--clusterIpSourceWhitelist`
389
+
390
+ - *Deprecated in version 5.0:* Use :option:`--clusterIpSourceAllowlist`
391
+ instead.
370
392
371
- - :dbcommand:`logout`
393
+ * - :dbcommand:`logout`
372
394
373
- *Deprecated in version 5.0:* Disconnect from the server to end your
374
- session instead.
395
+ - *Deprecated in version 5.0:* Disconnect from the server to end your
396
+ session instead.
375
397
376
- - :method:`db.logout()`
398
+ * - :method:`db.logout()`
377
399
378
- *Deprecated in version 5.0:* Disconnect from the server to end your
379
- session instead.
400
+ - *Deprecated in version 5.0:* Disconnect from the server to end your
401
+ session instead.
380
402
381
- - :ref:`local <audit-message-local>` audit message field
403
+ * - :ref:`local <audit-message-local>` audit message field
382
404
383
- *Deprecated in version 5.0:* Use the ``localEndpoint`` field in
384
- the :ref:`clientMetadata <audit-message-clientMetadata>` audit message
385
- instead.
405
+ - *Deprecated in version 5.0:* Use the ``localEndpoint`` field in
406
+ the :ref:`clientMetadata <audit-message-clientMetadata>` audit message
407
+ instead.
386
408
387
409
.. _deprecated-wire-protocol-opcodes:
388
410
0 commit comments