11.. _c2c-custom-manual-verification:
22
33==================================
4- Custom or Manual Verification Page
4+ Verifying Data with Custom Scripts
55==================================
66
77.. default-domain:: mongodb
@@ -16,40 +16,38 @@ Custom or Manual Verification Page
1616 :depth: 1
1717 :class: singlecol
1818
19+ You can write a script to query your source cluster and compare the documents,
20+ indexes, collections, metadata, and views with the destination cluster.
21+
1922.. _c2c-document-comparison:
2023
21- Document Comparison
24+ Comparing Documents
2225-------------------
2326
24- You can verify sync by comparing documents on the source and destination
25- clusters.
26-
27- Write a script that queries collections on the source cluster and then checks
28- that the correct documents, indexes, collections, metadata, and views exist with
29- the same values on the destination cluster.
27+ You can verify sync by comparing documents on the source and destination clusters.
3028
3129Before you can verify data transfer with this method, ``mongosync`` must be in
3230the ``COMMITTED`` state.
3331
3432.. _c2c-index-comparison:
3533
36- Index Comparison
37- ----------------
34+ Comparing Indexes
35+ -----------------
3836
39- To verify the transfer of indexes, run the :method:`db.collection.getIndexes`
40- method on the source and destination clusters and compare the results.
37+ To verify the transfer of indexes, run :method:`db.collection.getIndexes`
38+ on the source and destination clusters and compare the results.
4139
4240.. _c2c-metadata-comparison:
4341
44- Metadata Comparison
45- -------------------
42+ Comparing Metadata
43+ ------------------
4644
47- To verify the transfer of metadata, run the :method:`db.getCollectionInfos` method
45+ To verify the transfer of metadata, run :method:`db.getCollectionInfos`
4846on the source and destination clusters and compare the results.
4947
5048.. _c2c-shardkey-comparison:
5149
52- Shard Key Comparison
50+ Comparing Shard Keys
5351--------------------
5452
5553To verify the transfer of shard keys to a synced collection, run a query on the
0 commit comments