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

Conversation

ajhuh-mdb
Copy link
Collaborator

@ajhuh-mdb ajhuh-mdb commented Jan 21, 2025

DESCRIPTION

Adds a note that during pre-6.0 migrations, the verifier checks metadata and indexes only for DDL events.

  • Opted to keep the previously documented limitations in their own section, remove the redundant note at the top of the page, and make the new functionality a note since it doesn't apply to all migrations.

STAGING

https://deploy-preview-557--docs-cluster-to-cluster-sync.netlify.app/reference/verification/embedded/#unsupported-verification-checks

JIRA

https://jira.mongodb.org/browse/DOCSP-45863

Copy link

netlify bot commented Jan 21, 2025

Deploy Preview for docs-cluster-to-cluster-sync ready!

Name Link
🔨 Latest commit cce1439
🔍 Latest deploy log https://app.netlify.com/sites/docs-cluster-to-cluster-sync/deploys/6798f9eae1cbc900086ac7b1
😎 Deploy Preview https://deploy-preview-557--docs-cluster-to-cluster-sync.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@mdb-ashley mdb-ashley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, thanks Ali!

@ajhuh-mdb
Copy link
Collaborator Author

Hey @ajayvijayakumar123 and @mvankeulen 👋 Whenever you get the chance, could you both review this docs PR for noting verifier changes for pre-6.0 migrations? TIA!

Copy link
Collaborator

@ajayvijayakumar123 ajayvijayakumar123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions!


.. include:: /includes/fact-verifier-unsupported

.. note::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also include this note:

“Mongosync preserves document field-order based on what it reads using read preference primary from the source cluster. The embedded verifier will verify documents based on the source cluster’s primary node. It will not be able to verify discrepancies among the different source cluster nodes. In rare cases, discrepancies among the different source cluster’s nodes will cause the embedded verifier to fail a migration.”

at the top of the page? This applies to all migrations

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % changing In rare cases, discrepancies among the different source cluster’s nodes will cause the embedded verifier to fail a migration to In rare cases, discrepancies in document field order among the source cluster’s nodes will cause the embedded verifier to fail a migration even if mongosync copied documents correctly

It may also make sense to mention that the only case where this can happen is if an election occurs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we note that this issue can only occur in rare cases?

Copy link
Collaborator Author

@ajhuh-mdb ajhuh-mdb Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to double check my understanding is it that any time an election occurs this can happen or just a small portion of elections? Mainly want to make sure that we're clearing on distinguishing that if we're mentioning "rare cases" @ajayvijayakumar123 @rohshar

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discrepancies among different source cluster nodes only happen in very rare cases. Even if there is a discrepancy, an election may not even surface the issue and cause the verifier to fail. I think we can just say that this issue is rare in general.

@ajhuh-mdb
Copy link
Collaborator Author

Thanks for the review @ajayvijayakumar123. Just finished adding in the changes you suggested. For the note that applies to all migrations, I tweaked the wording a bit, but let me know if it's changed the meaning too much. Thanks again!

Copy link
Collaborator

@ajayvijayakumar123 ajayvijayakumar123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple more suggestions!


.. include:: /includes/fact-verifier-unsupported

.. note::
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we note that this issue can only occur in rare cases?

Copy link
Collaborator

@ajayvijayakumar123 ajayvijayakumar123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @rohshar Can you be the second reviewer for this PR? (since Maria's out sick)

Comment on lines 27 to 34
``mongosync`` reads using :readmode:`primary` read preference, so it
preserves document field order from the source cluster's primary node. The
embedded verifier also checks documents based on the source cluster’s primary
node. Because of this read preference, the verifier cannot verify
discrepancies between the different source cluster nodes. In rare cases,
discrepancies in document field order between the source cluster’s nodes will
cause the embedded verifier to fail the migration, even if ``mongosync``
copied the documents correctly.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
``mongosync`` reads using :readmode:`primary` read preference, so it
preserves document field order from the source cluster's primary node. The
embedded verifier also checks documents based on the source cluster’s primary
node. Because of this read preference, the verifier cannot verify
discrepancies between the different source cluster nodes. In rare cases,
discrepancies in document field order between the source cluster’s nodes will
cause the embedded verifier to fail the migration, even if ``mongosync``
copied the documents correctly.
``mongosync`` reads using :readmode:`primary` read preference, so it
preserves document field order from the source cluster's primary node. The
embedded verifier also checks documents based on the source cluster’s primary
node, but at a different time than mongosync reads them. Because of this, in rare cases,
discrepancies in document field order between the source cluster’s nodes will
cause the embedded verifier to fail the migration, even if ``mongosync``
copied the documents correctly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think about this change @ajayvijayakumar123

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup that sounds good. should we also note that discrepancies among cluster nodes themselves are rare?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's already implied in the suggested text

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks both. Updated.

@ajhuh-mdb ajhuh-mdb requested a review from rohshar January 28, 2025 15:43
@ajhuh-mdb ajhuh-mdb merged commit 59070e0 into mongodb:feature-older-version-support Jan 28, 2025
4 checks passed
ajhuh-mdb added a commit that referenced this pull request Jan 28, 2025
* DOCSP-45860-older-version-limitations (#522)

* DOCSP-45860-older-version-limitations

* *

* JA feedback

* *

* *

* *

* AV feedback

* MvK feedback

* DOCSP-45859 Version Compatibility (#518)

* DOCSP-45859 Version Compatibility

* *

* *

* *

* AV feedback

* swap list order

* MvK feedback

* DOCSP-45861 Older Version Support Task Page (#533)

* DOCSP-45861 Older Version Support Task Page

* add prerequisites & limitations

* *

* *

* procedures

* *

* rn

* *

* remove extra step

* nit

* AV feedback

* remove task page

* *

* *

* *

* DOCSP-45862 User permissions older version (#552)

* DOCSP-45862-user-permissions

* *

* JD feedback

* AV feedback

* DOCSP-45863-embedded-verifier-migrations (#557)

* DOCSP-45863-embedded-verifier-migrations

* *

* *

* AV feedback

* wording

* add ddl limitation

* *

* RS feedback

* *

* remove merge conflict artifact

* fix link title
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants