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

Fix benchRun() memory leak for parsing benchRun() args under exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 4.2.14, 4.4.6, 4.0.25, 5.0.0-rc4
    • Fix Version/s: 4.2.16, 4.4.8, 5.0.2, 4.0.27
    • Component/s: Query Execution
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2, v4.0
    • Sprint:
      Query Execution 2021-07-26
    • Linked BF Score:
      62

      Description

      SERVER-57897's new test case benchrun_read_pref_mode.js just exposed the existing benchRun() memory leak under exception. The memory leak has been fixed at master. The following code should be ported to v5.0/v4.4/v4.2/v4.0.

      https://github.com/mongodb/mongo/blob/master/src/mongo/shell/bench.cpp#L386-L390

      Lowering the priority to minor since it's an existing memory leak, not a regression.

      And this should not be a blocker for any releases.

        Attachments

          Activity

            People

            Assignee:
            yoonsoo.kim Yoon Soo Kim
            Reporter:
            yoonsoo.kim Yoon Soo Kim
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: