ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1024
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-130716 introduced foldConstant which does not try to read a per-operation limit, so can be used before PQS resolution.

      ExpressionNary::optimize() should also do this, to avoid:

      d20040| {"t":{"$date":"2026-09-29T02:34:39.487+00:00"},"s":"F",  "c":"ASSERT",   "id":23081,   "ctx":"conn1","msg":"Invariant failure","attr":{"expr":"_isKnobReadAllowed(knob.id)","msg":"PQS-settable query knob 'queryMaxMemoryUsageBytesPerOperation' read while query settings are pending resolution","location":"src/mongo/db/query/query_knobs/query_knob_configuration.h:55:80:T mongo::QueryKnobConfiguration::get(const QueryKnob<T> &) const [T = long long]"}}
      

            Assignee:
            James Harrison
            Reporter:
            James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: