Skip to content

Cannot see which database data is missing from #20

@mnikolic-ep

Description

@mnikolic-ep

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   \
  --checkOnly

And 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions