@@ -20,6 +20,17 @@ Definition
20
20
:dbcommand:`setFeatureCompatibilityVersion` against the ``admin``
21
21
database.
22
22
23
+ .. warning::
24
+
25
+ Enabling backwards-incompatible features can complicate the
26
+ downgrade process since you must remove any persisted
27
+ backwards-incompatible features before you downgrade.
28
+
29
+ It is recommended that after upgrading, you allow your deployment to
30
+ run without enabling backwards-incompatible features for a burn-in period
31
+ to ensure the likelihood of downgrade is minimal. When you are confident
32
+ that the likelihood of downgrade is minimal, enable these features.
33
+
23
34
Syntax
24
35
------
25
36
@@ -41,97 +52,39 @@ The values for the ``version`` are:
41
52
* - Version
42
53
- Description
43
54
44
- * - ``"5.0"``
55
+ * - ``"6.0"``
56
+
57
+ - *Available on MongoDB 6.0 Deployments*
45
58
59
+ Enables the :ref:`6.0 features that persist data incompatible
60
+ with MongoDB 5.0 <6.0-downgrade-considerations>`.
61
+
62
+ * - ``"5.0"``
46
63
47
64
- *Available on MongoDB 5.0 Deployments*
48
65
49
66
Enables the :ref:`5.0 features that persist data incompatible
50
67
with MongoDB 4.4 <5.0-compatibility-enabled>`.
51
68
52
- .. include:: /includes/featureCompatibility-caveat.rst
53
-
54
69
* - ``"4.4"``
55
70
56
-
57
71
- *Available on MongoDB 4.4 and 5.0 Deployments*
58
72
59
73
Enables the :ref:`4.4 features that persist data incompatible
60
74
with MongoDB 4.2 <4.4-compatibility-enabled>`.
61
75
62
- .. include:: /includes/featureCompatibility-caveat.rst
63
-
64
-
65
76
* - ``"4.2"``
66
77
67
-
68
78
- *Available on MongoDB 4.2 and 4.4 Deployments*
69
79
70
80
Enables the :ref:`4.2 features that persist data incompatible
71
81
with MongoDB 4.0 <4.2-compatibility-enabled>`.
72
82
73
- .. include:: /includes/featureCompatibility-caveat.rst
74
-
75
83
- If set on MongoDB 4.4 deployments,
76
84
Disables the :ref:`4.4 features that persist data
77
85
incompatible with MongoDB 4.2
78
86
<4.4-compatibility-enabled>`.
79
87
80
- * - ``"4.0"``
81
-
82
- - *Available on MongoDB 4.0 and 4.2 Deployments*
83
-
84
- - If set on MongoDB 4.0 deployments,
85
- Enables the :ref:`4.0 features that persist data incompatible
86
- with MongoDB 3.6 <4.0-compatibility-enabled>`.
87
-
88
- .. include:: /includes/featureCompatibility-caveat.rst
89
-
90
- - If set on MongoDB 4.2 deployments,
91
- Disables the :ref:`4.2 features that persist data
92
- incompatible with MongoDB 4.0
93
- <4.2-compatibility-enabled>`.
94
-
95
- * - ``"3.6"``
96
-
97
- - *Available on MongoDB 3.6 and 4.0 Deployments*
98
-
99
- - If set on MongoDB 3.6 deployments,
100
- Enables the :ref:`3.6 features that persist data
101
- incompatible with MongoDB 3.4
102
- <3.6-compatibility-enabled>`.
103
-
104
- .. include:: /includes/featureCompatibility-caveat.rst
105
-
106
- - If set on MongoDB 4.0 deployments,
107
- Disables the :ref:`4.0 features that persist data
108
- incompatible with MongoDB 3.6
109
- <4.0-compatibility-enabled>`.
110
-
111
-
112
- * - ``"3.4"``
113
-
114
- - *Available on MongoDB 3.4 and MongoDB 3.6 Deployments*
115
-
116
- - If set on MongoDB 3.4 deployments,
117
- Enables the :ref:`3.4 features that persist data
118
- incompatible with MongoDB 3.2
119
- <3.4-compatibility-enabled>`.
120
-
121
- .. include:: /includes/3.4-featureCompatibility-caveat.rst
122
-
123
- - If set on MongoDB 3.6 deployments,
124
- Disables the :ref:`3.6 features that persist data
125
- incompatible with MongoDB 3.4
126
- <3.6-compatibility-enabled>`.
127
-
128
- * - ``"3.2"``
129
-
130
- - *Available on MongoDB 3.4 Deployments*
131
-
132
- Disables the :ref:`3.4 features that persist data
133
- incompatible with MongoDB 3.2 <3.4-compatibility-enabled>`.
134
-
135
88
The optional ``writeConcern`` specifies the write concern
136
89
:ref:`wc-wtimeout` value in milliseconds:
137
90
@@ -257,6 +210,53 @@ depending on the current state of the :binary:`~bin.mongod`:
257
210
258
211
.. _set-fcv:
259
212
213
+ Set Feature Compatibility Version on MongoDB 6.0 Deployments
214
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215
+
216
+ Enable 6.0 Backwards Incompatible Features
217
+ ``````````````````````````````````````````
218
+
219
+ To enable the :ref:`6.0 features that persist data incompatible with
220
+ MongoDB 5.0 <6.0-downgrade-considerations>`, set the feature compatibility
221
+ to ``"6.0"`` on the MongoDB 6.0 deployment:
222
+
223
+ .. note::
224
+
225
+ Run the :dbcommand:`setFeatureCompatibilityVersion` command against
226
+ the ``admin`` database.
227
+
228
+ .. include:: /includes/list-run-command-targets.rst
229
+
230
+ .. code-block:: javascript
231
+
232
+ db.adminCommand( { setFeatureCompatibilityVersion: "6.0" } )
233
+
234
+ Disable 6.0 Backwards Incompatible Features
235
+ ```````````````````````````````````````````
236
+
237
+ To disable the :ref:`6.0 features that persist data incompatible with
238
+ MongoDB 5.0 <6.0-downgrade-considerations>`, set the feature compatibility
239
+ to ``"5.0"`` on the MongoDB 6.0 deployment:
240
+
241
+ .. note::
242
+
243
+ Run the :dbcommand:`setFeatureCompatibilityVersion` command against
244
+ the ``admin`` database.
245
+
246
+ .. include:: /includes/list-run-command-targets.rst
247
+
248
+ - ``"5.0"`` featureCompatibilityVersion is supported on MongoDB
249
+ 5.0 and MongoDB 6.0 deployments only.
250
+
251
+ .. code-block:: javascript
252
+
253
+ db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
254
+
255
+ If run as part of the downgrade process from MongoDB 6.0 to MongoDB
256
+ 5.0, you must also remove all persisted features that are
257
+ :ref:`incompatible <6.0-downgrade-considerations>` with 5.0. See the
258
+ appropriate downgrade procedures.
259
+
260
260
Set Feature Compatibility Version on MongoDB 5.0 Deployments
261
261
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
262
262
@@ -372,126 +372,6 @@ to ``"4.2"`` on the MongoDB 4.2 deployment:
372
372
373
373
db.adminCommand( { setFeatureCompatibilityVersion: "4.2" } )
374
374
375
- Disable 4.2 Backwards Incompatible Features
376
- ```````````````````````````````````````````
377
-
378
- To disable the :ref:`4.2 features that persist data incompatible with
379
- MongoDB 4.0 <4.2-compatibility-enabled>`, set the feature compatibility
380
- to ``"4.0"`` on the MongoDB 4.2 deployment:
381
-
382
- .. note::
383
-
384
- Run the :dbcommand:`setFeatureCompatibilityVersion` command against
385
- the ``admin`` database.
386
-
387
- .. include:: /includes/list-run-command-targets.rst
388
-
389
- - ``"4.0"`` featureCompatibilityVersion is supported on MongoDB
390
- 4.0 and MongoDB 4.2 deployments only.
391
-
392
- .. code-block:: javascript
393
-
394
- db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )
395
-
396
- If run as part of the downgrade process from MongoDB 4.2 to MongoDB
397
- 4.0, you must also remove all persisted features that are
398
- :ref:`incompatible <4.2-compatibility-enabled>` with 4.0. See the
399
- appropriate downgrade procedures.
400
-
401
- Set Feature Compatibility Version on MongoDB 4.0 Deployments
402
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403
-
404
- Enable 4.0 Backwards Incompatible Features
405
- ``````````````````````````````````````````
406
-
407
- To enable the :ref:`4.0 features that persist data incompatible with
408
- MongoDB 3.6 <4.0-compatibility-enabled>`, set the feature compatibility
409
- to ``"4.0"`` on the MongoDB 4.0 deployment:
410
-
411
- .. note::
412
-
413
- Run the :dbcommand:`setFeatureCompatibilityVersion` command against
414
- the ``admin`` database.
415
-
416
- .. include:: /includes/list-run-command-targets.rst
417
-
418
- .. code-block:: javascript
419
-
420
- db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )
421
-
422
- Disable 4.0 Backwards Incompatible Features
423
- ```````````````````````````````````````````
424
-
425
- To disable the :ref:`4.0 features that persist data incompatible with
426
- MongoDB 3.6 <4.0-compatibility-enabled>`, set the feature compatibility
427
- to ``"3.6"`` on the MongoDB 4.0 deployment:
428
-
429
- .. note::
430
-
431
- Run the :dbcommand:`setFeatureCompatibilityVersion` command against
432
- the ``admin`` database.
433
-
434
- .. include:: /includes/list-run-command-targets.rst
435
-
436
- - ``"3.6"`` featureCompatibilityVersion is supported on MongoDB
437
- 3.6 and MongoDB 4.0 Deployments Only.
438
-
439
- .. code-block:: javascript
440
-
441
- db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )
442
-
443
- If run as part of the downgrade process from MongoDB 4.0 to MongoDB
444
- 3.6, you must also remove all persisted features that are
445
- :ref:`incompatible <4.0-compatibility-enabled>` with 3.6. See the
446
- appropriate downgrade procedures.
447
-
448
- Set Feature Compatibility Version on MongoDB 3.6 Deployments
449
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
450
-
451
- Enable 3.6 Backwards Incompatible Features
452
- ``````````````````````````````````````````
453
-
454
- To enable the :ref:`3.6 features that persist data incompatible with
455
- MongoDB 3.4 <3.6-compatibility-enabled>`, set the feature compatibility
456
- to ``"3.6"`` on the MongoDB 3.6 deployment:
457
-
458
- .. note::
459
-
460
- Run the :dbcommand:`setFeatureCompatibilityVersion` command against
461
- the ``admin`` database.
462
-
463
- .. include:: /includes/list-run-command-targets.rst
464
-
465
- .. code-block:: javascript
466
-
467
- db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )
468
-
469
- Disable 3.6 Backwards Incompatible Features
470
- ```````````````````````````````````````````
471
-
472
- To disable the :ref:`3.6 features that persist data incompatible with
473
- MongoDB 3.4 <3.6-compatibility-enabled>`, set the feature compatibility
474
- to ``"3.4"`` on the MongoDB 3.6 deployment:
475
-
476
- .. note::
477
-
478
- Run the :dbcommand:`setFeatureCompatibilityVersion` command against
479
- the ``admin`` database.
480
-
481
- .. include:: /includes/list-run-command-targets.rst
482
-
483
- - ``"3.4"`` featureCompatibilityVersion is supported on MongoDB
484
- 3.6 and MongoDB 3.4 Deployments Only.
485
-
486
- .. code-block:: javascript
487
-
488
- db.adminCommand( { setFeatureCompatibilityVersion: "3.4" } )
489
-
490
- If run as part of the downgrade process from MongoDB 3.6 to MongoDB
491
- 3.4, you must also remove all persisted features that are
492
- :ref:`incompatible <3.6-compatibility-enabled>` with 3.4. See the
493
- appropriate downgrade procedures.
494
-
495
375
Set Write Concern Timeout
496
376
~~~~~~~~~~~~~~~~~~~~~~~~~
497
377
0 commit comments