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

Replace the logic that decides whether the SSCCL should use namespaces or uuids for config.cache.chunks collections

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding EMEA 2021-08-09, Sharding EMEA 2021-08-23
    • 156

      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.

            Assignee:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: