$_internalSearchMongotRemote should manage lifetime of _mergingPipeline

XMLWordPrintableJSON

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

      This came out of investigating AF-1087 and SERVER-100510  which manifests on 7.0 as an invalid opCtx issue due to _mergingPipeline not being managed by $_internalSearchMongotRemote. The same bug on 7.0 doesn't exist on master because $search has been refactored, but it would be safer for this change to be made to avoid potential issues in the future.  _mergingPipeline is on $_internalSearchMongotRemote, so $_internalSearchMongotRemote should manage the lifetime of _mergingPipeline instead of _mergingPipeline disposing itself. 

              Assignee:
              Unassigned
              Reporter:
              Erin Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: