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

collMod should not call catalogClient::getCollection during secondary replication

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Sharding EMEA
    • Fully Compatible
    • ALL
    • Sharding EMEA 2023-04-03, Sharding EMEA 2023-04-17
    • 135

      This is problematic in a config catalog environment because CatalogClient::getCollection will perform a read with read concern majority with afterClusterTime against the config server. And since itself is the config server, it can get stuck waiting for the clusterTime since the node's opTime will not advance because it is still processing the collMod op, causing a cyclic dependency.

      It is also not ideal that this call is performed while collection MODE_X is being held.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: