-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
Description
This adds an optional parameter to the validate command 'enforceFastCount'. When enabled with:
{enforceFastCount: true}
validation will fail if the fast count is not equal to the true record count. When disabled with:
{enforceFastCount: false}
or if not specified, behavior is the same as before (where validate corrects the fast count if it is incorrect). Note that currently, fast counts are known to be incorrect in certain circumstances such as unclean shutdown or active prepared transactions.
Description of Linked Ticket
It might be possible to add a new mode for validate that checks fastcount values against the actual record count, and when the values do not match, fail validation instead of fixing the fastcounts. This mode would be used by our test infrastructure in suites that do not undertake unclean shutdowns.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-44650 New test mode for foreground validate that doesn't silently fix fastcounts
- Closed
- is related to
-
DOCS-13740 Investigate changes in SERVER-48578: Skip fast count enforcement on the oplog when running validate with enforceFastCount=true
- Closed