[SERVER-69108] SCCL can immediately return config and admin metadata without triggering a refresh Created: 24/Aug/22  Updated: 29/Oct/23  Resolved: 29/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.1, 5.0.13, 6.0.2, 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Antonio Fuschetto Assignee: Antonio Fuschetto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-66972 Database critical section does not se... Closed
Problem/Incident
Related
is related to SERVER-68661 Deadlock with transactions after step... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.1, v6.0, v5.0
Sprint: Sharding EMEA 2022-09-05
Participants:
Linked BF Score: 105

 Description   

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).



 Comments   
Comment by Githook User [ 05/Oct/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-69108 SCCL can immediately return config and admin metadata without triggering a refresh
Branch: v6.1
https://github.com/mongodb/mongo/commit/507a15787ce1842f2b8363b6274bbbf8c137fecc

Comment by Githook User [ 15/Sep/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-69108 SCCL can immediately return config and admin metadata without triggering a refresh
Branch: v5.0
https://github.com/mongodb/mongo/commit/aa8a3126a2857f235a14aca96cdcd897e42990cf

Comment by Githook User [ 15/Sep/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-69108 SCCL can immediately return config and admin metadata without triggering a refresh
Branch: v6.0
https://github.com/mongodb/mongo/commit/9d97bffb2e39ce9b5b8ce37b4bfbed5342106a8a

Comment by Githook User [ 29/Aug/22 ]

Author:

{'name': 'Antonio Fuschetto', 'email': 'antonio.fuschetto@mongodb.com', 'username': 'afuschetto'}

Message: SERVER-69108 SCCL can immediately return config and admin metadata without triggering a refresh
Branch: master
https://github.com/mongodb/mongo/commit/6acc65f52de00bd9caa45e582e65a8669424b4dc

Generated at Thu Feb 08 06:12:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.