collMod should not call catalogClient::getCollection during secondary replication

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: