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

Conversation

@amalhotra-mdb
Copy link
Collaborator

@amalhotra-mdb amalhotra-mdb commented Oct 17, 2024

DESCRIPTION

Mongosync rewrites any legacy index key values that is 0 or an empty string from the source to a valid value (1) on the destination. This should be documented on the mongosync behavior page.

STAGING

https://deploy-preview-442--docs-cluster-to-cluster-sync.netlify.app/reference/mongosync/mongosync-behavior/#legacy-index-value-rewrites

JIRA

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

SELF-REVIEW CHECKLIST

  • Does each file have 3-5 taxonomy facet tags?
    See the taxonomy tagging instructions and this example PR
  • Is this free of any warnings or errors in the RST?
  • Is this free of spelling errors?
  • Is this free of grammatical errors?
  • Is this free of staging / rendering issues?
  • Are all the links working?

EXTERNAL REVIEW REQUIREMENTS

What's expected of an external reviewer?

@netlify
Copy link

netlify bot commented Oct 17, 2024

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

Name Link
🔨 Latest commit 02d553d
🔍 Latest deploy log https://app.netlify.com/sites/docs-cluster-to-cluster-sync/deploys/67169a18c064d900082d3321
😎 Deploy Preview https://deploy-preview-442--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.

Thanks, Anika! Let me know when this is ready for another look.

connecting to the source and destination clusters. For more information,
see :ref:`connections-read-preference`.

Rewrites
Copy link
Collaborator

Choose a reason for hiding this comment

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

[question] Is this the right title? Is this what would help a user understand what is being rewritten?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for taking a look at this, @mdb-ashley !

I specified the title a bit – let me know if you think it's clearer! Also, I was a little unsure if this was the write section to put this information in. Does it seem right to you, or do you think there's a more appropriate place for it?

Rewrites
~~~~~~~~

``mongosync`` rewrites any legacy index values from the source to ``1``
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps,

"mongosync does not support legacy index values, like 0 or an empty
string. Legacy index values from the source are rewritten to 1
on the destination."

@amalhotra-mdb
Copy link
Collaborator Author

Thanks, Anika! Let me know when this is ready for another look.

Thank you for your review, @mdb-ashley ! BTY!

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.

LGTM! Thanks, Anika!

Copy link

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

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

Sorry, I forgot to mention in the ticket that mongosync also removes any invalid index options on the destination as part of converting legacy indexes. Could you add that to the PR as well?

Legacy Index Value Rewrites
~~~~~~~~~~~~~~~~~~~~~~~~~~~

``mongosync`` does not support legacy index values, like ``0`` or an empty
Copy link

@tdq45gj tdq45gj Oct 17, 2024

Choose a reason for hiding this comment

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

I feel "does not support" means that it's a limitation and is not allowed. But mongosync is actually handling legacy index values in this case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks for taking a look at this, @tdq45gj ! BTY!

@amalhotra-mdb amalhotra-mdb requested a review from tdq45gj October 21, 2024 18:29
Copy link

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jwilson-mdb jwilson-mdb merged commit 46dba11 into mongodb:master Oct 22, 2024
3 checks passed
amalhotra-mdb added a commit to amalhotra-mdb/docs-cluster-to-cluster-sync that referenced this pull request Oct 22, 2024
* DOCSP-44006-mongosync-behavior-converting-legacy-indexes

* remove reference to valid value

* reword and change title of subsection

* add other mongosync behavior, remove mention of not supporting legacy index vals
mdb-ashley pushed a commit that referenced this pull request Oct 22, 2024
* DOCSP-44006-mongosync-behavior-converting-legacy-indexes

* remove reference to valid value

* reword and change title of subsection

* add other mongosync behavior, remove mention of not supporting legacy index vals
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