[SERVER-58575] Replace the logic that decides whether the SSCCL should use namespaces or uuids for config.cache.chunks collections Created: 15/Jul/21  Updated: 29/Oct/23  Resolved: 18/Aug/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

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

Issue Links:
Depends
depends on SERVER-58570 Add a new field to config.collections... Closed
depends on SERVER-58572 Extend the CatalogCache Loaders to pr... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-08-09, Sharding EMEA 2021-08-23
Participants:
Linked BF Score: 156

 Description   

The goal of this task is to replace the timestamp-based logic that we have in the SSCCL to decide whether it has to use nss or uuid by the new flag. Note that this include two changes:

  • We have to change the functions that insert/update/drop information to config.cache.chunks.* so they rely on the new flag.
  • The transition from nss to uuid (and vice versa). Basically we have to rewrite the condition of this if-stmt in such a way that if it detects that the value of the flag changed it triggers the rename. The tricky part here is how to detect that the value that the shard has locally is different from the one it got from the CS. Open question: can we have something in memory so we don't have to go to disk?

Note that we will have to update some LOG messages too.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 18/Aug/21 ]

Author:

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

Message: SERVER-58575 Replace the logic that decides whether the SSCCL should use namespaces or uuids for config.cache.chunks collections
Branch: master
https://github.com/mongodb/mongo/commit/1d6b7bab47918cbf1b6361e9f29f3f91e8441698

Comment by Githook User [ 17/Aug/21 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: Revert "SERVER-58575 Replace the logic that decides whether the SSCCL should use namespaces or uuids for config.cache.chunks collections"

This reverts commit 0d9c8e78185156a008f5c4557188fa9ecbbdc36b.
Branch: master
https://github.com/mongodb/mongo/commit/07507a2318e63043d4b6bb8c1d0d342e0076291f

Comment by Githook User [ 16/Aug/21 ]

Author:

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

Message: SERVER-58575 Replace the logic that decides whether the SSCCL should use namespaces or uuids for config.cache.chunks collections
Branch: master
https://github.com/mongodb/mongo/commit/0d9c8e78185156a008f5c4557188fa9ecbbdc36b

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