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

Leaked ChunkManager object if an exception happens while loading collection metadata

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.9, 3.2.0-rc5
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding D (12/11/15)

      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.

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

              Created:
              Updated:
              Resolved: