From 2e0e7cfa1bc442c9e543b0b945a388b6d2d2d5f3 Mon Sep 17 00:00:00 2001 From: ltran-mdb2 <143426234+ltran-mdb2@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:52:02 -0400 Subject: [PATCH] DOCSP-47851-update-enableUserWriteBlocking-values (#718) (cherry picked from commit cbf189228d5dd0c6762c83cf892b7b33b2931b74) --- source/includes/api/requests/start-reversible.sh | 2 +- source/reference/api/start.txt | 2 +- source/reference/cutover-process.txt | 2 +- source/topologies/multiple-mongosyncs.txt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/includes/api/requests/start-reversible.sh b/source/includes/api/requests/start-reversible.sh index 90c25b474..3ae87a77e 100644 --- a/source/includes/api/requests/start-reversible.sh +++ b/source/includes/api/requests/start-reversible.sh @@ -4,5 +4,5 @@ curl localhost:27182/api/v1/start -XPOST \ "source": "cluster0", "destination": "cluster1", "reversible": true, - "enableUserWriteBlocking": true + "enableUserWriteBlocking": "sourceAndDestination" } ' diff --git a/source/reference/api/start.txt b/source/reference/api/start.txt index 8fcb4564d..42a70b2c0 100644 --- a/source/reference/api/start.txt +++ b/source/reference/api/start.txt @@ -174,7 +174,7 @@ Request Body Parameters reversed. To reverse sync, the ``enableUserWriteBlocking`` field must be set - to ``true``. + to ``sourceAndDestination``. This option is not supported for the following configurations: diff --git a/source/reference/cutover-process.txt b/source/reference/cutover-process.txt index 6c6976410..810ace2e7 100644 --- a/source/reference/cutover-process.txt +++ b/source/reference/cutover-process.txt @@ -137,7 +137,7 @@ Steps :ref:`manually migrate PQS ` to your destination cluster. If you previously set ``enableUserWriteBlocking`` - to ``true``, ``mongosync`` blocks writes on the source cluster + to ``sourceAndDestination``, ``mongosync`` blocks writes on the source cluster once you complete this step. .. step:: Wait until you can perform writes on the destination cluster. diff --git a/source/topologies/multiple-mongosyncs.txt b/source/topologies/multiple-mongosyncs.txt index 850409ac2..8a6421178 100644 --- a/source/topologies/multiple-mongosyncs.txt +++ b/source/topologies/multiple-mongosyncs.txt @@ -163,11 +163,11 @@ Use ``curl`` or another HTTP client to issue the :ref:`start curl mongosync01Host:27601/api/v1/start -XPOST --data \ '{ "source": "cluster0", "destination": "cluster1", \ - "reversible": false, "enableUserWriteBlocking": false }' + "reversible": false, "enableUserWriteBlocking": "none" }' curl mongosync02Host:27602/api/v1/start -XPOST --data \ '{ "source": "cluster0", "destination": "cluster1", \ - "reversible": false, "enableUserWriteBlocking": false }' + "reversible": false, "enableUserWriteBlocking": "none" }' The ``start`` command options must be the same for all of the ``mongosync`` instances.