Create internalQueryMaxMemoryUsageBytesPerOperation and use when verifying then memory is within limit in SimpleMemoryUsageTracker

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This task has three actions

      • Create knob internalQueryMaxMemoryUsageBytesPerOperation in src/mongo/db/query/query_execution_knobs.idl. Set default value to std::numeric_limits<long long>::max() .
      • Read the memory limit from this knob when creating an OperationMemoryUsageTracker
      • Update SimpleMemoryUsage tracker to consider both the stage limit and the operation limit when checking if the memory is withinLimit. Since the memory limit is unlimited this will not affect stages that already use the SimpleMemoryUsage tracker.

            Assignee:
            Projjal Chanda
            Reporter:
            Foteini Alvanaki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: