featureFlagDualCatalogCache: sharded $search with storedSource can miss results if placed inside sub-pipeline

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • Hide

      Investigating

      Show
      Investigating
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      edit: It looks like there's a problem here only with featureFlagDualCatalogCache specified. de-escalating and we'll dig in more.

      previous description (where we thought we needed a critical advisory):
      For this special codepath, it looks like there is no mechanism to allow the shard servers to detect that the collection is sharded - they will send a request to the primary shard for the db (b/c they default to assuming it's unsharded), and the primary shard for the db will see the storedSource option and fail to perform any shard versioning protocol checks - completing the request successfully instead of returning the error which would indicate the collection is sharded.

            Assignee:
            Will Buerger
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: