collStats should consider index visibility in relation to its snapshot

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-11-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The collStats command includes information about in-progress index builds in its results. It compares the in-memory state from the IndexCatalog with the on-disk state using the DurableCatalog interface to see if an index is available for queries or it is still building.

      The current collStats implementation does not determine if an index is visible in the current snapshot before querying the on-disk state. A similar issue affecting $indexStats was discussed and subsequently addressed in SERVER-51133.

            Assignee:
            Benety Goh
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: