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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 4.2.14, 4.4.6, 4.0.25, 5.0.0-rc4
    • 4.2.16, 4.4.8, 5.0.2, 4.0.27
    • Query Execution
    • None
    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0
    • Query Execution 2021-07-26
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: