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

SCCL can immediately return config and admin metadata without triggering a refresh

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.1, 5.0.13, 6.0.2, 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.1, v6.0, v5.0
    • Sharding EMEA 2022-09-05
    • 105

      Currently, in the case of the primary node, SCCL returns fixed metadata for the config and admin databases. On the other hand, secondary nodes invoke the _flushDatabaseCacheUpdates command on primary to triggers a refresh in order to get the same information in the corresponding config.cache.databases entry.

      The logic of secondaries can be simplified by  returning the fixed metadata immediately, as the primary node already does. This allows to avoid the refresh of the database metadata but having the same semantics.

      As a (desired) side effect, this allows SERVER-66972 to bypass the deadlock SERVER-68661 (which is not resolved by this ticket).

            antonio.fuschetto@mongodb.com Antonio Fuschetto
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            0 Vote for this issue
            3 Start watching this issue