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

supporting_unique_index_check_is_versioned.js assumes that a refresh always reads from the primary node of the CSRS

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding EMEA

      The test wrongly assumes that the moveChunk command issued by a completely fresh mongos always succeeds. This is not always true: this refresh at the beginning of the moveChunk command in the mongos might not see that the collection was already sharded and throw an exception: the reason is that the CatalogCache reads from the config server with Nearest read preference so it might end up reading the majority committed information from a secondary node of the CSRS that hasn't replicated the shardCollection operation yet.

            Assignee:
            backlog-server-sharding-emea [DO NOT USE] Backlog - Sharding EMEA
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: