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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • ALL
    • Hide

      Investigating

      Show
      Investigating
    • None
    • 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:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None