1
1
.. _c2c-custom-manual-verification:
2
2
3
3
==================================
4
- Custom or Manual Verification Page
4
+ Verifying Data with Custom Scripts
5
5
==================================
6
6
7
7
.. default-domain:: mongodb
@@ -16,40 +16,38 @@ Custom or Manual Verification Page
16
16
:depth: 1
17
17
:class: singlecol
18
18
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
+
19
22
.. _c2c-document-comparison:
20
23
21
- Document Comparison
24
+ Comparing Documents
22
25
-------------------
23
26
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.
30
28
31
29
Before you can verify data transfer with this method, ``mongosync`` must be in
32
30
the ``COMMITTED`` state.
33
31
34
32
.. _c2c-index-comparison:
35
33
36
- Index Comparison
37
- ----------------
34
+ Comparing Indexes
35
+ -----------------
38
36
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.
41
39
42
40
.. _c2c-metadata-comparison:
43
41
44
- Metadata Comparison
45
- -------------------
42
+ Comparing Metadata
43
+ ------------------
46
44
47
- To verify the transfer of metadata, run the :method:`db.getCollectionInfos` method
45
+ To verify the transfer of metadata, run :method:`db.getCollectionInfos`
48
46
on the source and destination clusters and compare the results.
49
47
50
48
.. _c2c-shardkey-comparison:
51
49
52
- Shard Key Comparison
50
+ Comparing Shard Keys
53
51
--------------------
54
52
55
53
To verify the transfer of shard keys to a synced collection, run a query on the
0 commit comments