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

Cleanup order in Grid::clearForUnitTests can cause access to freed memory

    • Fully Compatible
    • ALL
    • Sharding 2021-01-11, Sharding 2021-01-25
    • 45

      Currently, clearForUnitTests clears the catalog client before the catalog cache. When it's CatalogCache to call it's destructor, it also tries to wait for all the pending task to complete. One of the possible tasks are calls to _lookupDatabase, which can eventually call ShardingCatalogClient::getDatabase.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: