Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13667

Investigate changes in SERVER-44650: New test mode for foreground validate that doesn't silently fix fastcounts

      Description

      Downstream Change Summary

      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.)

            Assignee:
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 47 weeks, 2 days ago