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

mongos attempts to optimize a pipeline without having injected an expression context

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.3.11
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • ALL
    • Query 2016-08-29
    • 0

      PipelineCommand::run() in cluster_pipeline_cmd.cpp calls Pipeline::parse() and then Pipeline::optimizePipeline() without resolving the collator and calling Pipeline::injectExpressionContext() in between.

      // Parse and optimize the pipeline specification.
      auto pipeline = Pipeline::parse(request.getValue().getPipeline(), mergeCtx);
      if (!pipeline.isOK()) {
          return appendCommandStatus(result, pipeline.getStatus());
      }
      pipeline.getValue()->optimizePipeline();
      

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: