From 4219ea71257ab8a800f4f79b24efc504ba7179e4 Mon Sep 17 00:00:00 2001 From: Anika Malhotra Date: Thu, 6 Feb 2025 16:00:49 -0500 Subject: [PATCH 1/4] DOCSP-46986-destinationDataHandling-note --- source/reference/beta-program-private/many-to-one.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/reference/beta-program-private/many-to-one.txt b/source/reference/beta-program-private/many-to-one.txt index 32624aa02..70e63187a 100644 --- a/source/reference/beta-program-private/many-to-one.txt +++ b/source/reference/beta-program-private/many-to-one.txt @@ -42,6 +42,13 @@ commands when starting :ref:`mongosync `: To start the sync operation between the source clusters and the destination cluster, see :ref:`c2c-quickstart-synchronize`. +When beginning your sync operation for a many-to-one migration, add +the following parameter to the :ref:`/start ` requests: + +.. code:: + + "destinationDataHandling": "ignorePreExistingNamespaces" + Behavior -------- From 38fa2436774bdddf68f0e41ba3fc456e1219b60a Mon Sep 17 00:00:00 2001 From: Anika Malhotra Date: Thu, 6 Feb 2025 16:18:21 -0500 Subject: [PATCH 2/4] add additional info --- source/reference/beta-program-private/many-to-one.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/reference/beta-program-private/many-to-one.txt b/source/reference/beta-program-private/many-to-one.txt index 70e63187a..ae84d9567 100644 --- a/source/reference/beta-program-private/many-to-one.txt +++ b/source/reference/beta-program-private/many-to-one.txt @@ -49,6 +49,13 @@ the following parameter to the :ref:`/start ` requests: "destinationDataHandling": "ignorePreExistingNamespaces" +Internally, ``mongosync`` uses the ``--migrationName`` command line option +to create a customized migration metadata database for each migration +following the ``mongosync_internal_`` pattern. Setting +``"destinationDataHandling"`` to ``"ignorePreExistingNamespaces"`` allows +each migration to write to the destination cluster that may have +pre-existing namespaces from the other many-to-one migrations. + Behavior -------- From a67ea131b9af05bb31bdd62708ac4d6cb6416633 Mon Sep 17 00:00:00 2001 From: Anika Malhotra Date: Thu, 6 Feb 2025 16:21:02 -0500 Subject: [PATCH 3/4] wording --- source/reference/beta-program-private/many-to-one.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/beta-program-private/many-to-one.txt b/source/reference/beta-program-private/many-to-one.txt index ae84d9567..6d7835645 100644 --- a/source/reference/beta-program-private/many-to-one.txt +++ b/source/reference/beta-program-private/many-to-one.txt @@ -49,7 +49,7 @@ the following parameter to the :ref:`/start ` requests: "destinationDataHandling": "ignorePreExistingNamespaces" -Internally, ``mongosync`` uses the ``--migrationName`` command line option +``mongosync`` uses the ``--migrationName`` command line option to create a customized migration metadata database for each migration following the ``mongosync_internal_`` pattern. Setting ``"destinationDataHandling"`` to ``"ignorePreExistingNamespaces"`` allows From 4a4999a02633f8f473037f6d4e05e7191176bdec Mon Sep 17 00:00:00 2001 From: Anika Malhotra Date: Thu, 6 Feb 2025 16:28:05 -0500 Subject: [PATCH 4/4] remove internal content --- source/reference/beta-program-private/many-to-one.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/reference/beta-program-private/many-to-one.txt b/source/reference/beta-program-private/many-to-one.txt index 6d7835645..45eff9ebf 100644 --- a/source/reference/beta-program-private/many-to-one.txt +++ b/source/reference/beta-program-private/many-to-one.txt @@ -49,11 +49,8 @@ the following parameter to the :ref:`/start ` requests: "destinationDataHandling": "ignorePreExistingNamespaces" -``mongosync`` uses the ``--migrationName`` command line option -to create a customized migration metadata database for each migration -following the ``mongosync_internal_`` pattern. Setting -``"destinationDataHandling"`` to ``"ignorePreExistingNamespaces"`` allows -each migration to write to the destination cluster that may have +Setting ``"destinationDataHandling"`` to ``"ignorePreExistingNamespaces"`` +allows each migration to write to the destination cluster that may have pre-existing namespaces from the other many-to-one migrations. Behavior