Clear cached database information asyncronously after dropping it

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 5.0.3, 5.1.0-rc1
    • Component/s: Sharding
    • None
    • Sharding EMEA 2021-11-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently as part of the drop database coordinator flow, we broadcast _flushDatabaseCacheUpdates  command with majority write concern to all shards and we wait synchronously for its execution.
      The only purpose of this call is to flush the cached entries of the dropped database from all the nodes in the cluster to reclaim memory. So it is not strictly required.
      For this reason I think we should:
       - stop using the majority write concern
       - use fireAndForget to asynchronously schedule the command execution on all the shards and not block this coordinator.

            Assignee:
            Allison Easton
            Reporter:
            Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: