Checkpoint the vector clock when discovering new shard versions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Catalog and Routing
    • Sharding EMEA 2022-02-21, Sharding EMEA 2022-03-07, Sharding EMEA 2022-03-21, Sharding EMEA 2022-04-04, Sharding EMEA 2022-04-18, Sharding EMEA 2022-05-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Persisting the vector clock before setting the filtering metadata discovered after refreshing ensures causal consistency in the following scenario:

      • Node A is primary and refreshes, discovering shard version X
      • Step-down
      • Node B becomes primary and refreshes, discovering shard version X - 1 because reading from the (stale) nearest CSRS node

      In order to not block the shard for too long of a time, the checkpoint must be done only with local write concern.

            Assignee:
            [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: