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

[v7.0] Move dismissDisposal() of _mergingPipeline from DocumentSourceInternalSearchRemoteMongot constructor

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

      Since _mergingPipeline dismissal is done in the DocumentSourceInternalSearchRemoteMongot constructor, if an error occurs within the setup of the pipeline, _mergingPipeline is not disposed of and an invariant failure in its destructor occurs which obfuscates the original error. We should move the dismissal of the _mergingPipeline from the constructor to avoid this. 

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            erin.zhu@mongodb.com Erin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: