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

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: