Details
Description
When this invariant fails, which indicates more writes were applied to an index than recorded, it would be helpful to see what the resulting index and collection data is instead of crashing.
Make this invariant debug-only. If this is a real bug, the collection validation hooks should fail in non-debug tests.