Initialize fast count collection before write to admin.system.version

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Storage Execution 2026-03-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, the replicated fast count collection is initialized after the FCV document is written to admin.system.version, resulting in the error message "fast count (0) does not match number of records (1) for collection 'admin.system.version'" during validation in some patches. 

      Initialize the replicated fast count collection before this FCV document is written to properly track the size/count increment.

      As part of this change, update calls to isReplicatedFastCountEnabled() after FCV initilization to use isEnabled() instead of isEnabledUseLatestFCVWhenUninitialized().

            Assignee:
            Cedric Sirianni
            Reporter:
            Cedric Sirianni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: