Get accurate collection size and count with the replicated collections and oplog

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Implement the read path of replicated size and count by following the procedure:

      1. Open storage engine snapshot at latest
      2. Determine valid-as-of: read config.fast_count_metadata_store and config.fast_count_metadata_store_timestamps
      3. Initialize metadata values from config.fast_count_metadata_store
      4. Read oplog from valid-as-of timestamp to the end and aggregate size and count deltas of the collection's entries. 

      FTDC will use estimated size and count values and should skip step 4.

            Assignee:
            Unassigned
            Reporter:
            Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: