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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.2.16, 4.4.8, 5.0.2, 4.0.27
    • Affects Version/s: 4.2.14, 4.4.6, 4.0.25, 5.0.0-rc4
    • Component/s: Query Execution
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Query Execution 2021-07-26
    • 62

      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.

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

              Created:
              Updated:
              Resolved: