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

Leaked ChunkManager object if an exception happens while loading collection metadata

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.9, 3.2.0-rc5
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding D (12/11/15)

    Description

      If an exception happens while the collection metadata is being loaded, mongos will leak a ChunkManager object, which may or may not contain partial metadata as well.

      The reason for this is that we pass a raw pointer in this call. This could be fixed by using a unique_ptr so that the incomplete ChunkManager will be deleted on exception.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: