Shopify / ghostferry

The swiss army knife of live data migrations
https://shopify.github.io/ghostferry
MIT License
694 stars 65 forks source link

Add sanity check to InlineVerifier and TargetVerifier #261

Open Lincoln23 opened 3 years ago

Lincoln23 commented 3 years ago

263

For InlineVerifier: check if rowsChecked > 0 when we run VerifyDuringCutover. if no rows were checked, return VerificationResult.DataCorrect = False

For TargetVerifier: check after we run StopTargetVerifier to see if we verified any events if no events were checked, we log and return an error, copydb and sharding will then panic