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

Router must route `convertToCapped` without incorrect shard version

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-03-18, CAR Team 2024-04-01
    • 140

      Routers are forwarding convertToCapped commands to shards by using the executeCommandAgainstDatabasePrimary helper that is always attaching UNSHARDED shard version.

      The shard ignores the version when instantiating a DDL coordinator (that does not inherit parameters from the command's operation context), but this is not the case when executing the legacy path that is expecting the right shard version.

      There are 2 possible solutions:

      • Route by using the executeDDLCoordinatorCommandAgainstDatabasePrimary helper that does not attach unconditionally the UNSHARDED version.
      • Wait for SERVER-86309 that will properly unregister collections on downgrade (the real issue is that the FCV was downgraded without the collection getting unregistered from the sharding catalog)

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: