Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot see which database data is missing from #20

Open
mnikolic-ep opened this issue Aug 28, 2024 · 0 comments
Open

Cannot see which database data is missing from #20

mnikolic-ep opened this issue Aug 28, 2024 · 0 comments

Comments

@mnikolic-ep
Copy link

mnikolic-ep commented Aug 28, 2024

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 |
+--------------------------------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant