Skip to content

Commit 84704db

Browse files
Small release and compat notes refactor
1 parent de6ef65 commit 84704db

File tree

3 files changed

+67
-60
lines changed

3 files changed

+67
-60
lines changed

source/reference/replica-configuration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ Replica Set Configuration Fields
483483

484484
*Type*: document
485485

486-
Unavailable starting in MongoDB 5.0
486+
Unavailable starting in MongoDB 5.0.
487487

488488
.. important::
489489

source/release-notes/5.0-compatibility.txt

Lines changed: 66 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ Automatic Reconfiguration for New Voting Replica Set Members
168168

169169
.. include:: /includes/extracts/initial-sync-semantics.rst
170170

171+
Removed Customizable Values For getLastErrorDefaults
172+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
173+
174+
.. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
175+
171176

172177
Read Concern ``snapshot`` on Capped Collections
173178
-----------------------------------------------
@@ -303,86 +308,103 @@ issued but the server will not abort.
303308
General Changes
304309
---------------
305310

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.
307316

308-
- Starting in MongoDB 5.0, the :dbcommand:`reIndex` command and the
317+
- The :dbcommand:`reIndex` command and the
309318
:method:`db.collection.reIndex()` shell method may only be run on
310319
:term:`standalone` instances.
311320

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
314323
pipeline is limited to 1000.
315324

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.
320329

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
323331
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+.
325334

326-
- MongoDB 5.0 removes the ``--serviceExecutor`` command-line option and
335+
- MongoDB removes the ``--serviceExecutor`` command-line option and
327336
the corresponding ``net.serviceExecutor`` configuration option.
328337

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
333341
user when the :option:`--apiStrict` option is set will generate an
334342
error message once per authentication attempt. If you are not using
335343
the :option:`--apiStrict` option, authenticating as a new user while
336344
currently logged in as an existing user will write a warning to the
337345
log once per authentication attempt.
338346

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.
342357

343-
- .. include:: /includes/fact-set-global-write-concern-before-reconfig.rst
344358

345359
Deprecations
346360
~~~~~~~~~~~~
347361

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`
349371

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`.
352374

353-
- :method:`db.printSlaveReplicationInfo()`
375+
* - :method:`db.printSlaveReplicationInfo()`
354376

355-
.. include:: /includes/deprecated-db.printSlaveReplicationInfo.rst
377+
- .. include:: /includes/deprecated-db.printSlaveReplicationInfo.rst
356378

357-
- :method:`rs.printSlaveReplicationInfo()`
379+
* - :method:`rs.printSlaveReplicationInfo()`
358380

359-
.. include:: /includes/deprecated-rs.printSlaveReplicationInfo.rst
381+
- .. include:: /includes/deprecated-rs.printSlaveReplicationInfo.rst
360382

361-
- :setting:`security.clusterIpSourceWhitelist`
383+
* - :setting:`security.clusterIpSourceWhitelist`
362384

363-
*Deprecated in version 5.0:* Use
364-
:setting:`security.clusterIpSourceAllowlist` instead.
385+
- *Deprecated in version 5.0:* Use
386+
:setting:`security.clusterIpSourceAllowlist` instead.
365387

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.
370392

371-
- :dbcommand:`logout`
393+
* - :dbcommand:`logout`
372394

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.
375397

376-
- :method:`db.logout()`
398+
* - :method:`db.logout()`
377399

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.
380402

381-
- :ref:`local <audit-message-local>` audit message field
403+
* - :ref:`local <audit-message-local>` audit message field
382404

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.
386408

387409
.. _deprecated-wire-protocol-opcodes:
388410

source/release-notes/5.0.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@ measurements over a period of time. Compared to normal collections,
8585
storing time series data in time series collections improves query
8686
efficiency and reduces disk usage for your data and indexes.
8787

88-
Deprecate Map Reduce Operation
89-
------------------------------
90-
91-
Starting in version 5.0, MongoDB deprecates the
92-
:doc:`map-reduce</core/map-reduce>` operation.
93-
94-
For examples of aggregation pipeline alternatives to map-reduce
95-
operations, see :doc:`/reference/map-reduce-to-aggregation-pipeline` and
96-
:doc:`/tutorial/map-reduce-examples`.
97-
9888
Aggregation
9989
-----------
10090

@@ -357,11 +347,6 @@ Starting in MongoDB 5.0, these database commands and
357347
Replica Sets
358348
------------
359349

360-
Removed Customizable Values For getLastErrorDefaults
361-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
362-
363-
.. include:: /includes/5.0-changes-getLastErrorDefaults-removed.rst
364-
365350
``hello`` Command
366351
~~~~~~~~~~~~~~~~~
367352

0 commit comments

Comments
 (0)