Skip to content

Commit f27b439

Browse files
committed
DOCS-1251, DOCS-1244, and some of Rassi's comments for DOCS-1188
1 parent 9f75f99 commit f27b439

File tree

4 files changed

+63
-31
lines changed

4 files changed

+63
-31
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Before you start the upgrade, ensure that the amount of free space on
2+
the filesystem for the :doc:`config database
3+
</reference/config-database>` is 4 to 5 times the amount of space
4+
currently used by the :doc:`config database
5+
</reference/config-database>` data files.

source/release-notes/2.4-index-types.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ creating any invalid index will result in an error. Furthermore, you
4141
cannot create a ``2dsphere`` or ``text`` index if your databases have
4242
any invalid index types. [#grandfathered-indexes]_
4343

44-
.. [#grandfathered-indexes] In 2.4 indexes that specify a type of
44+
.. [#grandfathered-indexes] In 2.4, indexes that specify a type of
4545
``"1"`` or ``"-1"``(the strings ``"1"`` and ``"-1"``) will continue
46-
to exist and can co-exist with ``2dsphere`` and ``text``, despite a
47-
warning on start-up. **However**, a :term:`secondary` in a replica
48-
set cannot complete initial sync from a primary that has a ``"1"``
49-
or ``"-1"`` index. Avoid all indexes with invalid types.
46+
to exist, despite a warning on start-up. **However**, a
47+
:term:`secondary` in a replica set cannot complete an initial sync
48+
from a primary that has a ``"1"`` or ``"-1"`` index. Avoid all
49+
indexes with invalid types.

source/release-notes/2.4-upgrade.txt

Lines changed: 52 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ following procedures.
2828
Upgrade a Sharded Cluster from MongoDB 2.2 to MongoDB 2.4
2929
---------------------------------------------------------
3030

31-
.. important:: Only upgrade sharded clusters to 2.4 if all members of
32-
the cluster are currently running instances of 2.2. The only
31+
.. important:: Only upgrade sharded clusters to 2.4 if **all** members
32+
of the cluster are currently running instances of 2.2. The only
3333
supported upgrade path for sharded clusters running 2.0 is via 2.2.
3434

3535
Upgrading a :term:`sharded cluster` from MongoDB version 2.2 to 2.4
@@ -44,17 +44,38 @@ are capable of handling epochs, even though 2.2 did not require them.
4444
This procedure applies only to upgrades from version 2.2. Earlier
4545
versions of MongoDB do not correctly handle epochs.
4646

47-
While the upgrade is in progress, you cannot make changes to the
48-
collection metadata. For example, you cannot perform operations that
49-
add shards, drop databases, or drop collections, or modify the
50-
metadata in any other way.
51-
5247
.. warning::
5348

54-
Once you upgrade to 2.4 and complete the upgrade procedure **do
55-
not** use 2.0 :program:`mongod` and :program:`mongos` processes in
56-
your cluster. 2.0 process may re-introduce old metadata formats
57-
into cluster metadata.
49+
- .. include:: /includes/fact-upgrade-sharded-cluster-prereq.rst
50+
51+
- While the upgrade is in progress, you cannot make changes to the
52+
collection metadata. For example, during the upgrade, do **not**
53+
perform:
54+
55+
- :method:`sh.enableSharding()`,
56+
57+
- :method:`sh.shardCollection()`,
58+
59+
- :method:`sh.addShard()`,
60+
61+
- :method:`db.createCollection()`,
62+
63+
- :method:`db.collection.drop()`,
64+
65+
- :method:`db.dropDatabase()`,
66+
67+
- any operation that creates a database, or
68+
69+
- any other operation that modifies the cluster metadata in any
70+
way. See :doc:`/reference/sharding-commands` for a complete list
71+
of sharding commands. Note, however, that not all commands on
72+
the :doc:`/reference/sharding-commands` page modifies the
73+
cluster metadata.
74+
75+
- Once you upgrade to 2.4 and complete the upgrade procedure **do
76+
not** use 2.0 :program:`mongod` and :program:`mongos` processes in
77+
your cluster. 2.0 process may re-introduce old metadata formats
78+
into cluster metadata.
5879

5980
.. note::
6081

@@ -71,9 +92,12 @@ Sharded Cluster Upgrade Procedure
7192
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7293

7394
Do not perform operations that modify metadata while performing this
74-
procedure.
95+
procedure. See :ref:`2.4-upgrade-cluster` for examples of prohibited
96+
operations.
7597

76-
1. Turn off the :ref:`balancer <sharding-balancing-internals>` in the
98+
#. .. include:: /includes/fact-upgrade-sharded-cluster-prereq.rst
99+
100+
#. Turn off the :ref:`balancer <sharding-balancing-internals>` in the
77101
:term:`sharded cluster`, as described in
78102
:ref:`sharding-balancing-disable-temporally`.
79103

@@ -305,7 +329,7 @@ these indexes. For example:
305329
.. code-block:: javascript
306330

307331
db.records.dropIndex( { loc: "2dsphere" } )
308-
db.records.dropIndex( { records: "text" } )
332+
db.records.dropIndex( { "records_text" } )
309333

310334
db.records.ensureIndex( { loc: "2dsphere" } )
311335
db.records.ensureIndex( { records: "text" } )
@@ -315,19 +339,22 @@ these indexes. For example:
315339
Downgrade MongoDB from 2.4 to Previous Versions
316340
-----------------------------------------------
317341

318-
For some cases the on-disk format of data files used by 2.4
319-
and 2.2 :program:`mongod` is compatible, and you can upgrade and
320-
downgrade if needed. However, several new features in 2.4 require
321-
additional attention. These features are:
342+
For some cases the on-disk format of data files used by 2.4 and 2.2
343+
:program:`mongod` is compatible, and you can upgrade and downgrade if
344+
needed. However, several new features in 2.4 are incompatible with
345+
previous versions:
322346

323-
- ``2dsphere`` indexes on 2.2 and earlier :program:`mongod` instances.
347+
- ``2dsphere`` indexes are incompatible with 2.2 and earlier
348+
:program:`mongod` instances.
324349

325-
- ``text`` indexes on 2.2 and earlier :program:`mongod` instances.
350+
- ``text`` indexes are incompatible with 2.2 and earlier
351+
:program:`mongod` instances.
326352

327-
- using a ``hashed`` index as a shard key with 2.2 and earlier
328-
:program:`mongos` instances
353+
- using a ``hashed`` index as a shard key are incompatible with 2.2 and
354+
earlier :program:`mongos` instances
329355

330-
- ``hashed`` indexes on 2.0 and earlier :program:`mongod` instances.
356+
- ``hashed`` indexes are incompatible with 2.0 and earlier
357+
:program:`mongod` instances.
331358

332359
.. note::
333360

@@ -413,11 +440,11 @@ indexes using :method:`db.collection.dropIndex()`, for example:
413440
.. code-block:: javascript
414441

415442
db.records.dropIndex( { loc: "2dsphere" } )
416-
db.records.dropIndex( { records: "text" } )
443+
db.records.dropIndex( { "records_text" } )
417444

418445
.. warning::
419446

420-
:option:`--upgrade <mongo --upgrade>` will run
447+
:option:`--upgrade <mongod --upgrade>` will run
421448
:dbcommand:`repairDatabase` on any database where you have created
422449
a ``2dsphere`` or ``text`` index, which will rebuild *all*
423450
indexes.

source/release-notes/2.4.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Before 2.4, :program:`mongod` would create an ascending scalar index
353353
that did not exist. Creating an index of an invalid index type
354354
will generate an error in 2.4.
355355

356-
See :doc:`/release-notes/2.4-index-types.txt` for more information.
356+
See :doc:`/release-notes/2.4-index-types` for more information.
357357

358358
Interface Changes
359359
+++++++++++++++++

0 commit comments

Comments
 (0)