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

Use a complete ExpressionContext for assertSolutionExists in QueryPlannerTest

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 6.0.0, 7.0.0, 8.1.0-rc0, 8.0.0
    • Component/s: Query Planning
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-03-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some test cases in QueryPlannerTest (example) call a method assertSolutionExists which as part of its implementation creates an incomplete ExpressionContext lacking an associated OperationContext.

      Currently this is harmless, however as part of SPM-4048 we intend to use that OperationContext to check feature flags, so we need to avoid creating that incomplete ExpressionContext.

            Assignee:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Reporter:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None