You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft/release-notes/2.0.txt
+75-79Lines changed: 75 additions & 79 deletions
Original file line number
Diff line number
Diff line change
@@ -20,26 +20,24 @@ replacement for MongoDB 1.8.
20
20
Preparation
21
21
~~~~~~~~~~~
22
22
23
-
There are a few changes you must be aware of before attempting to
24
-
upgrade. Read through all release notes before upgrading, and ensure
25
-
that no changes will affect your deployment.
23
+
Read through all release notes before upgrading, and ensure that no
24
+
changes will affect your deployment.
26
25
27
-
If you create new indexes in 2.0, then downgrading to 1.8
28
-
:wiki:`is possible <mongo+-+Index+Versions>`
29
-
but reindexing the new collections will be required.
26
+
If you create new indexes in 2.0, then downgrading to 1.8 is possible
27
+
but you must reindex the new collections. For more information on 2.0
28
+
indexes and on rollback, see :wiki:`Index Versions`.
30
29
31
30
``mongoimport`` and ``mongoexport`` now correctly adhere to the CSV spec
32
31
for handling CSV input/output. This may break existing import/export
33
-
workflows if they relied on the broken behavior. For more information
34
-
see the related `JIRA case <https://jira.mongodb.org/browse/SERVER-1097>`_.
32
+
workflows that relied on the previous behavior. For more information see
33
+
:issue:`SERVER-1097`.
35
34
36
-
`Journaling <http://api.mongodb.org/wiki/current/Journaling.html>`_ is
37
-
**enabled by default** in 2.0 for 64-bit builds. If you still prefer to
38
-
run without journaling, start :program:`mongod` with the ``--nojournal``
39
-
option. Otherwise, the journal files will be created on startup. The
40
-
first time you start :program:`mongod` with journaling, you will see a
41
-
delay while the new files are being created. In addition, you may see
42
-
reduced write throughput.
35
+
:wiki:`Journaling` is **enabled by default** in 2.0 for 64-bit builds.
36
+
If you still prefer to run without journaling, start :program:`mongod`
37
+
with the ``--nojournal`` option. Otherwise, the journal files are
38
+
created on startup. The first time you start :program:`mongod` with
39
+
journaling, you will see a delay while the new files are created.
40
+
In addition, you may see reduced write throughput.
43
41
44
42
2.0 processes can talk to 1.8 processes and vice versa, so you can
45
43
upgrade various parts of a cluster in any order.
@@ -67,11 +65,11 @@ Upgrading a Replica Set
67
65
68
66
#. To avoid losing the last few updates on failover you can
69
67
temporarily halt your application (failover should take less than 10
70
-
seconds) or change your application code to
71
-
`confirm that each update reaches multiple servers <http://api.mongodb.org/wiki/current/Verifying%20Propagation%20of%20Writes%20with%20getLastError.html>`_.
68
+
seconds), or you can set :ref:`write concern <write-concern>` in your application
69
+
code to confirm that each update reaches multiple servers.
72
70
73
71
#. Use the :method:`rs.stepDown()` to step down the primary to allow
74
-
the normal :ref:`failover <mongo+-+replica-set-failover>` procedure.
72
+
the normal :ref:`failover <replica-set-failover>` procedure.
75
73
76
74
:method:`rs.stepDown()` and :dbcommand:`replSetStepDown` provide for
77
75
shorter and more consistent failover procedures than simply
@@ -108,7 +106,8 @@ Concurrency Improvements
108
106
When going to disk, the server will yield the write lock if the data
109
107
being acted upon isn't likely to be in memory. The initial
specifying ``slaveOk``, you specify ``slaveOk`` with tags indicating
201
+
which data-centers to read from. For details, see the
202
+
:doc:`/applications/drivers` documentation.
204
203
205
204
``w`` : ``majority``
206
205
````````````````````
@@ -212,26 +211,25 @@ from the set.
212
211
213
212
For more information, see :ref:`replica-set-write-concern`.
214
213
215
-
Reconfiguration with a minority up
214
+
Reconfiguration with a Minority Up
216
215
``````````````````````````````````
217
216
218
217
If the majority of servers in a set has been permanently lost, you can
219
218
now force a reconfiguration of the set to bring it back online.
220
219
221
-
See more information on :ref:`Reconfiguring a replica set when members are down <mongo+-+http://www.mongodb.org/display/DOCS/Reconfiguring+a+replica+set+when+members+are+down>`.
220
+
See more information see :wiki:`Reconfiguring a replica set when members are down <Reconfiguring+a+replica+set+when+members+are+down>`.
222
221
223
-
Primary checks for a caught up secondary before stepping down
222
+
Primary Checks for a Caught up Secondary before Stepping Down
When you call the :dbcommand:`shutdown` command, the :term:`primary`
@@ -250,76 +248,75 @@ secondary available.
250
248
Maintenance Mode
251
249
````````````````
252
250
253
-
When ``repair`` or ``compact`` is run on a :term:`secondary`, the
251
+
When :dbcommand:`repair` or :dbcommand:`compact` is run on a :term:`secondary`, the
254
252
secondary will automatically drop into "recovering" mode until the
255
253
operation is finished. This prevents clients from trying to read from it
256
254
while it's busy.
257
255
258
256
Geospatial Features
259
257
~~~~~~~~~~~~~~~~~~~
260
258
261
-
Multi-location documents
259
+
Multi-Location Documents
262
260
````````````````````````
263
261
264
262
Indexing is now supported on documents which have multiple location
265
263
objects, embedded either inline or in nested sub-documents. Additional
266
264
command options are also supported, allowing results to be returned with
267
265
not only distance but the location used to generate the distance.
268
266
269
-
For more information, see the :ref:`Geospatial documentation <mongo+-+http://www.mongodb.org/display/DOCS/Geospatial+Indexing#GeospatialIndexing-MultilocationDocuments>`.
267
+
For more information, see :wiki:`Multi-location Documents <Geospatial+Indexing#GeospatialIndexing-MultilocationDocuments>`.
270
268
271
269
Polygon searches
272
270
````````````````
273
271
274
-
Polygonal ``$within`` queries are also now supported for simple polygon
272
+
Polygonal :operator:`$within` queries are also now supported for simple polygon
275
273
shapes. For details, see the :operator:`$within` operator documentation.
276
274
277
-
Journaling enhancements
275
+
Journaling Enhancements
278
276
~~~~~~~~~~~~~~~~~~~~~~~
279
277
280
278
- Journaling is now enabled by default for 64-bit platforms. Use the
281
279
``--nojournal`` command line option to disable it.
282
280
283
281
- The journal is now compressed for faster commits to disk.
284
282
285
-
- A new :option:`--journalCommitInterval` command line option exists for
283
+
- A new :option:`--journalCommitInterval <mongod --journalCommitInterval>` run-time option exists for
286
284
specifying your own group commit interval. 100ms is the default (same as
287
285
in 1.8).
288
286
289
-
- A new :dbcommand:`getLastError{j: true} <getLastError>` option is
287
+
- A new :dbcommand:`{ getLastError: { j: true } }<getLastError>` option is
290
288
available to wait for the group commit. The group commit will happen
291
289
sooner when a client is waiting on ``{j: true}``. If journaling is
0 commit comments