-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I am trying out migration-verifier to validate a "zero-downtime" mongo migration. The only thing I care about is that there are no documents in the source database missing from the destination database.
Is this possible with migration-verifier?
This is the command I am running:
migration_verifier \
--srcURI "mongodb://localhost:27017" \
--dstURI "mongodb://localhost:27018" \
--metaURI "mongodb://localhost:27018" \
--srcNamespace databasename.collectionname \
--dstNamespace databasename.collectionname \
--checkOnlyAnd these are the results I get:
End of Generation #1
Generation time elapsed: 15.26s
Namespaces compared: 1
Source documents compared: 1 (0.07/sec)
Total size of those documents: 290 bytes (18.95 bytes/sec)
Failure summary:
+--------------------------------+-------+
| FAILURE TYPE | COUNT |
+--------------------------------+-------+
| Documents With Differing | 0 |
| Content | |
| Documents Missing On Source or | 472 |
| Dest | |
+--------------------------------+-------+
First 20 documents present in source/destination missing in destination/source:Ideally I'd like to see something like the following:
+--------------------------------+-------+
| FAILURE TYPE | COUNT |
+--------------------------------+-------+
| Documents With Differing | 0 |
| Content | |
| Documents Missing On Source | 472 |
| Documents Missing On Dest | 2 |
+--------------------------------+-------+Metadata
Metadata
Assignees
Labels
No labels