Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-99014

Always use v2 checksums for everything except index builds

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2025-01-20

      SERVER-77705 FCV-gated the use of v2 checksums to support downgrading in the middle of an index build. However, this was applied to all uses of sorter spill files, and not just resumable ones. Everything else can unconditionally use v2 checksums as the files will never be read by a different server version.

      This has some performance benefits when running with FCV <7.3 and enables some subsequent simplifications to the code. Currently v1 checksum calculation is done in a somewhat complicated way that is not beneficial for resumable index builds, and only using v1 checksums for index builds will make that unnecessary.

            Assignee:
            thomas.goyne@mongodb.com Thomas Goyne
            Reporter:
            thomas.goyne@mongodb.com Thomas Goyne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: