[SERVER-53104] Ensure all shard-local cache collections of config.collections contain timestamps after upgrade Created: 30/Nov/20  Updated: 29/Oct/23  Resolved: 26/Feb/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0-Metadata-Format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-53862 Complete TODO listed in SERVER-52587 Closed
Related
related to SERVER-54820 Complete TODO listed in SERVER-53104 Closed
is related to SERVER-55647 shard-local db and collection caches ... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Since SERVER-52588, on FCV upgrade we create a 'timestamp' for the collections in configsvr's config.collections. The shard-local cache will be refreshed the first time it sees a new version with Epoch+Timestamp. This is not guaranteed to happen for all collections, unless they are referenced.

In order to facilitate the upgrade from 5.0 to 5.1, where SERVER-52847 will make the 'timestamp' required in IDL, we want to guarantee that upon finishing the upgrade to 5.0, no cached entries are left without timestamp anywhere.

This ticket is to ensure that the shard-local caches are refreshed after FCV upgrade to 5.0.

This can be accomplished by either:

  • Doing FCV upgrade in a 2-phase commit manner (if we end up doing in)
  • Issuing _flushRoutingTable({syncFromConfig:true} commands.


 Comments   
Comment by Githook User [ 03/Mar/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-54820 Complete TODO listed in SERVER-53104
Branch: master
https://github.com/mongodb/mongo/commit/d907f3a145d7ace275f16e01777d5681094cf8f0

Comment by Githook User [ 26/Feb/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-53104 Ensure all shard-local cache collections of config.collections contain timestamps after upgrade

Changelog:

Comment by Githook User [ 09/Feb/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-53104 Ensure all shard-local cache collections of config.collections contain timestamps after upgrade

Comment by Githook User [ 05/Feb/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-53104 Ensure all shard-local cache collections of config.collections contain timestamps after upgrade

Comment by Githook User [ 03/Feb/21 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-53104 Ensure all shard-local cache collections of config.collections contain timestamps after upgrade

Generated at Thu Feb 08 05:29:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.