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

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Sharding EMEA
              Reporter:
              Sergi Mateo Bellido
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: