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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.21
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • ALL
    • v7.0
    • None
    • 3
    • None
    • 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
              Reporter:
              Erin Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: