Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Dec 8, 2025

One of this tool’s longstanding pain points is that it is quite common for mismatches to appear in only 1 generation. Because of this it’s not been feasible to distinguish “real” mismatches from “ephemeral” ones.

This changeset teaches Migration Verifier to track how long a given mismatch has been seen. It does so by recording the mismatch’s first-seen & latest-seen time; the delta between those times is the mismatch’s “duration”. We now log that value as part of the table of mismatches, and we sort the mismatches on it (descending). Thus, the top line in the mismatch table is the longest-lived mismatch, which is the one most likely to warrant manual intervention.

This makes no effort to hide “ephemeral” mismatches because determining what counts as “ephemeral” requires knowledge of how far behind the replicator (e.g., mongosync) lags the source cluster. If the lag is 30 minutes, for example, then ideally the logs would hide (or, at least, just mention without surfacing) any mismatch newer than that lag time. This is a possible area for follow-up improvement.

@FGasper FGasper closed this Dec 8, 2025
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

Successfully merging this pull request may close these issues.

1 participant