Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit d16b506

Browse files
authored
Merge branch 'master' into DOCSP-47695
2 parents cb5936d + 075df4d commit d16b506

18 files changed

+134
-70
lines changed

snooty.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ intersphinx = [ "https://www.mongodb.com/docs/atlas/objects.inv",
1414

1515
toc_landing_pages = ["/quickstart",
1616
"/installation",
17-
"reference/reference",
17+
"/reference",
1818
"/connecting",
1919
"/topologies",
2020
"/using-mongosync",
2121
"/multiple-mongosyncs",
22-
"/release-notes/release-notes",
22+
"/release-notes",
2323
"/faq",
2424
"/reference/collection-level-filtering",
2525
"/reference/verification",
@@ -28,10 +28,10 @@ toc_landing_pages = ["/quickstart",
2828
]
2929

3030
[constants]
31-
version = "1.11"
32-
version-previous = "1.10"
33-
latest-version="1.11.0"
34-
version-dev = "1.11"
31+
version = "1.12"
32+
version-previous = "1.11"
33+
latest-version="1.12.0"
34+
version-dev = "1.13"
3535
c2c-product-name = "Cluster-to-Cluster Sync"
3636
c2c-full-product-name = "MongoDB Cluster-to-Cluster Sync"
3737
mdb-download-center = "`MongoDB Download Center <https://www.mongodb.com/try/download/mongosync>`__"

source/about-mongosync.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ call the :ref:`commit <c2c-api-commit>` endpoint.
129129
You must block writes to the source cluster before you begin the
130130
the commit process.
131131

132-
If you previously set ``enableUserWriteBlocking`` to ``true`` when
133-
you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
132+
If you previously set ``enableUserWriteBlocking`` to ``"sourceAndDestination"``
133+
when you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
134134
automatically blocks writes on the source cluster when you use the
135135
``commit`` endpoint.
136136

137-
If you did not set ``enableUserWriteBlocking`` to ``true``, run
138-
:dbcommand:`setUserWriteBlockMode` on the source cluster to
137+
If you did not set ``enableUserWriteBlocking`` to ``"sourceAndDestination"``,
138+
run :dbcommand:`setUserWriteBlockMode` on the source cluster to
139139
block writes.
140140

141141
The ``commit`` endpoint starts the :ref:`COMMITTING <c2c-state-committing>`

source/includes/fact-older-version-limitations.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
- :ref:`/reverse <c2c-api-reverse>` endpoint is not supported. You can't
2929
enable the ``reversible`` option in the :ref:`/start <c2c-api-start>` request.
3030

31-
- You can't set the ``enableUserWriteBlocking`` option to ``true``
32-
in the ``/start`` request, so dual write-blocking is not supported.
31+
- You can't set the ``enableUserWriteBlocking`` option to
32+
``"sourceAndDestination"`` in the ``/start`` request, so dual write-blocking
33+
is not supported.
3334
Destination-only write-blocking is supported. Ensure that no writes are
3435
made to the source cluster after you call the ``/commit`` endpoint.
3536

source/includes/fact-partial-8.0-support.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/includes/fact-write-blocking-enable.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ If you enable dual write-blocking, ``mongosync`` blocks writes:
1515
- On the source cluster after you call ``/commit``
1616

1717
To enable dual write-blocking, use :ref:`/start <c2c-api-start>`
18-
to set ``enableUserWriteBlocking`` to ``true``.
18+
to set ``enableUserWriteBlocking`` to ``"sourceAndDestination"``.
1919

2020
You can use
2121
:ref:`/start <c2c-api-start>`
22-
to set ``enableUserWriteBlocking`` to ``false``.
22+
to set ``enableUserWriteBlocking`` to ``"none"``.
2323

2424
You cannot enable dual write-blocking or disable
2525
write-blocking after the sync starts.

source/includes/live-upgrade.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
Starting in ``mongosync`` 1.7.0, you can upgrade ``mongosync`` without
2-
restarting data synchronization operations from the beginning. You can
3-
only live upgrade to ``mongosync`` 1.7.3 or later from ``mongosync``
4-
1.7.2 or later.
2+
restarting data synchronization operations from the beginning.
53

64
.. important::
75

8-
``mongosync`` does not support live upgrades to version 1.11.
6+
``mongosync`` does not support live upgrades to version 1.12.

source/includes/table-pre-6.0-compatibility.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. list-table::
22
:header-rows: 1
33
:stub-columns: 1
4-
:widths: 30 14 14 14
4+
:widths: 20 14 14 14
55

66
* -
77
- **6.0 Destination**
@@ -30,5 +30,5 @@
3030
* - **8.0 Source**
3131
-
3232
-
33-
-
33+
-
3434

source/reference/api/reverse.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To use the ``reverse`` endpoint:
4545
call to the :ref:`/start <c2c-api-start>` API endpoint must set:
4646

4747
- ``reversible`` to ``true``
48-
- ``enableUserWriteBlocking`` to ``true``.
48+
- ``enableUserWriteBlocking`` to ``"sourceAndDestination"``.
4949

5050
.. note::
5151

source/reference/api/start.txt

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,33 @@ Request Body Parameters
115115
.. versionadded:: 1.3.0
116116

117117
* - ``enableUserWriteBlocking``
118-
- boolean or string
118+
- string or boolean
119119
- Optional
120-
- If set to ``true``, blocks writes on the destination
121-
cluster while the migration is in progress, and unblocks writes right
122-
before the :ref:`/progress <c2c-api-progress>` endpoint reports
123-
that ``canWrite`` is ``true``. Blocks writes on the source
124-
cluster after ``mongosync`` calls the :ref:`/commit <c2c-api-commit>`
125-
endpoint.
120+
- :gold:`IMPORTANT:` If you are migrating from a pre-6.0 source cluster,
121+
you cannot set this parameter.
122+
123+
Supported options:
124+
125+
- ``"sourceAndDestination"``: blocks writes on the destination
126+
cluster while the migration is in progress, and unblocks writes right
127+
before the :ref:`/progress <c2c-api-progress>` endpoint reports
128+
that ``canWrite`` is ``true``. Blocks writes on the source
129+
cluster after ``mongosync`` calls the :ref:`/commit <c2c-api-commit>`
130+
endpoint.
126131

127-
If set to ``false``, no write blocking occurs.
132+
You can also use ``true`` for backward compatibility.
128133

129-
If set to ``"destinationOnly"``, blocks writes on the destination
130-
cluster while migration is in progress, and unblocks writes right
131-
before ``canWrite`` is ``true``.
134+
- ``"none"``: no write blocking occurs. You can also use ``false``
135+
for backward compatibility.
132136

133-
:gold:`IMPORTANT:` If you are migrating from a pre-6.0 source cluster,
134-
you cannot set ``enableUserWriteBlocking`` to ``true``.
137+
- ``"destinationOnly"``: blocks writes on the destination
138+
cluster while migration is in progress, and unblocks writes right
139+
before ``canWrite`` is ``true``.
135140

136141
To reverse sync, the ``enableUserWriteBlocking`` field must be set
137-
to ``true``. To allow the source cluster to accept writes again,
138-
for example after running migration tests, run the following
139-
command:
142+
to ``"sourceAndDestination"``. To allow the source cluster
143+
to accept writes again, for example after running migration tests,
144+
run the following command:
140145

141146
.. code-block:: shell
142147

source/reference/beta-program-private/orr.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ You might exceed the :term:`oplog window` if you:
6262
To increase the size of the oplog on the source cluster, use
6363
:setting:`~replication.oplogSizeMB`.
6464

65+
.. note::
66+
67+
ORR is compatible with :ref:`embedded verification<c2c-embedded-verifier>`.
68+
6569
Learn More
6670
----------
6771

source/reference/cutover-process.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ Steps
8484
destination and unblocks them right before ``canWrite`` is
8585
set to ``true``.
8686
- If you start ``mongosync`` with ``enableUserWriteBlocking``
87-
set to ``true``, ``mongosync`` blocks all write operations
87+
set to ``"sourceAndDestination"``, ``mongosync`` blocks all write operations
8888
on the destination cluster and unblocks them right before ``canWrite``
8989
is set to ``true``. ``mongosync`` blocks writes on the source after you call
9090
``/commit``.
9191
- If you start ``mongosync`` with ``enableUserWriteBlocking`` set
92-
to ``false``, ensure that you disable writes.
92+
to ``"none"``, ensure that you disable writes.
9393
For example, run the :dbcommand:`setUserWriteBlockMode` command on the
9494
source cluster:
9595

source/reference/limitations.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ General Limitations
4141
- Other clients must not write to the destination cluster while
4242
``mongosync`` is running.
4343
- If you want to start the :ref:`commit <c2c-api-commit>`
44-
process and you did not set ``enableUserWriteBlocking`` to ``true``
44+
process and you did not set ``enableUserWriteBlocking`` to ``"sourceAndDestination"``
4545
when you used the :ref:`c2c-api-start` endpoint, you
4646
must :ref:`prevent writes <c2c-api-start>` to the source cluster
4747
before you start the commit process.
@@ -200,6 +200,13 @@ cluster.
200200

201201
.. include:: /includes/fact-verifier-limitations
202202

203+
Persistent Query Settings
204+
-------------------------
205+
206+
``mongosync`` doesn't migrate Persistent Query Settings (PQS), which were
207+
introduced in MongoDB 8.0. If your source cluster uses PQS, you must
208+
:ref:`migrate them manually <c2c-migrate-pqs>`.
209+
203210
.. _c2c-older-version-limitations:
204211

205212
Pre-6.0 Migrations

source/reference/mongosync.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ The :ref:`Frequently Asked Questions (FAQ) <c2c-faq>` page addresses questions u
3434
Compatibility
3535
-------------
3636

37-
- .. include:: /includes/fact-partial-8.0-support.rst
38-
3937
- .. include:: /includes/fact-minimum-server-version-support.rst
4038

4139
You can migrate data on clusters (source) with versions of MongoDB

source/reference/supported-server-version.txt

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ MongoDB Server Version Compatibility
1313
:class: singlecol
1414

1515
Before you run {+c2c-product-name+}, consider the following MongoDB server
16-
version limitations and requirements:
17-
18-
- .. include:: /includes/fact-partial-8.0-support.rst
16+
version limitations and requirements:
1917

2018
- Your source cluster must run one of the following major supported versions:
2119

2220
- 4.4 (*New in version 1.10.0*)
2321
- 5.0 (*New in version 1.10.0*)
2422
- 6.0
2523
- 7.0
24+
- 8.0 (*New in version 1.12.0*)
2625

2726
- ``mongosync`` doesn't support MongoDB rapid releases, such as 6.1 or 6.2.
2827

@@ -53,6 +52,10 @@ clusters:
5352
- 7.0.13
5453
- 6.0
5554

55+
* - 8.0
56+
- 8.0
57+
- 8.0
58+
5659
.. _c2c-sync-different-versions:
5760

5861
Synchronize Data Between Clusters with Different MongoDB Server Major Versions
@@ -73,20 +76,4 @@ destination MongoDB server versions:
7376

7477
.. seealso::
7578

76-
:ref:`Pre-6.0 Migration Limitations <c2c-older-version-limitations>`
77-
78-
.. _c2c-server-8.0-to-8.0:
79-
80-
Synchronize Data Between Two 8.0 Clusters
81-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82-
83-
To migrate data between two 8.0 clusters:
84-
85-
- Use :ref:`mongodump` to export data from the source cluster.
86-
- Use :ref:`mongorestore` to import the data into the destination cluster.
87-
88-
For limitations on using ``mongodump`` and ``mongorestore``, see
89-
:ref:`mongorestore-behavior-access-usage`.
90-
91-
Alternatively, you can :ref:`downgrade your 8.0 source cluster <8.0-downgrade>`
92-
to 7.0 and then migrate your data into an 8.0 destination cluster.
79+
:ref:`Pre-6.0 Migration Limitations <c2c-older-version-limitations>`

source/release-notes.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. place holder for the release notes TOC
2-
31
=============
42
Release Notes
53
=============
@@ -14,11 +12,12 @@ release notes.
1412
Current Stable Release
1513
~~~~~~~~~~~~~~~~~~~~~~
1614

17-
- :ref:`c2c-release-notes-1.11`
15+
- :ref:`c2c-release-notes-1.12`
1816

1917
Previous Releases
2018
~~~~~~~~~~~~~~~~~
2119

20+
- :ref:`c2c-release-notes-1.11`
2221
- :ref:`c2c-release-notes-1.10`
2322
- :ref:`c2c-release-notes-1.9`
2423
- :ref:`c2c-release-notes-1.8`
@@ -37,6 +36,7 @@ Previous Releases
3736
.. toctree::
3837
:titlesonly:
3938

39+
1.12 </release-notes/1.12>
4040
1.11 </release-notes/1.11>
4141
1.10 </release-notes/1.10>
4242
1.9 </release-notes/1.9>

source/release-notes/1.12.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
.. _c2c-release-notes-1.12:
2+
3+
================================
4+
Release Notes for mongosync 1.12
5+
================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
15+
This page describes changes and new features introduced in
16+
{+c2c-full-product-name+} 1.12.
17+
18+
.. _1.12.0-c2c-release-notes:
19+
20+
1.12.0 Release
21+
--------------
22+
23+
**February 19, 2025**
24+
25+
MongoDB 8.0 support
26+
~~~~~~~~~~~~~~~~~~~
27+
28+
{+c2c-full-product-name+} 1.12 adds support for MongoDB 8.0 on the source
29+
cluster. However, it does not migrate Persistent Query Settings (PQS), which
30+
are new in 8.0. If your source cluster uses PQS, you must :ref:`migrate them
31+
manually <c2c-migrate-pqs>`.
32+
33+
For a full list of supported versions, see :ref:`c2c-server-version-compatibility`.
34+
35+
36+
``enableUserWriteBlocking`` parameters
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
39+
The ``enableUserWriteBlocking`` parameter in the
40+
:ref:`/start <c2c-api-start>` API now accepts the following string options:
41+
42+
- ``"sourceAndDestination"`` for dual write-blocking
43+
- ``"none"`` for no write-blocking
44+
45+
Use these options instead of the old ``true`` and ``false`` values.
46+
``enableUserWriteBlocking`` still supports ``true`` and ``false``
47+
for backward compatibility.
48+
49+
See :ref:`c2c-api-start-params`.
50+
51+
Live Upgrades
52+
~~~~~~~~~~~~~
53+
54+
:ref:`Live upgrades <c2c-versioning-live-upgrade>`
55+
to version 1.12 are not supported.
56+
57+
Other Notes
58+
~~~~~~~~~~~
59+
60+
- Added a machine-friendly label to warnings about Persisted Query Settings
61+
62+
Minimum Supported Version
63+
-------------------------
64+
65+
.. include:: /includes/fact-version-compatibility.rst
66+
67+
.. include:: /includes/migration-upgrade-recommendation.rst

source/reverse-sync.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Before you can reverse your sync direction, you must configure
3030
following parameters:
3131

3232
- ``reversible`` to ``true``
33-
- ``enableUserWriteBlocking`` to ``true``.
33+
- ``enableUserWriteBlocking`` to ``"sourceAndDestination"``.
3434

3535
For more information on limitations and requirements of reversing sync,
3636
see :ref:`c2c-api-reverse`.

source/topologies/multiple-mongosyncs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,5 +311,5 @@ instance that is running on ``mongosync01Host`` and using ``port
311311
.. note::
312312

313313
Reverse synchronization is only possible if ``reversible`` and
314-
``enableUserWriteBlocking`` are both set to ``true`` when the
314+
``enableUserWriteBlocking`` are both set to ``"sourceAndDestination"`` when the
315315
:ref:`start API <c2c-api-start>` initiates ``mongosync``.

0 commit comments

Comments
 (0)