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

Sharding cluster parameters cannot be accessed via MongoS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc18
    • Affects Version/s: 7.0.1, 8.0.0-rc0, 7.3.0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-08-05, CAR Team 2024-08-19

      Today, we have three different server parameters defined in sharding_cluster_parameters.idl. These are: shardedClusterCardinalityForDirectConns, addOrRemoveShardInProgress, and configServerReadPreferenceForCatalogQueries.

      If we try to run getClusterParameter via the MongoS

      db.adminCommand({ getClusterParameter: 'addOrRemoveShardInProgress' })
      

      we will encounter an error, such as:

      (MongoServerError[NoSuchKey]: Unknown server parameter: addOrRemoveShardInProgress
      

      It happens the same if we try to update the cluster parameter (setClusterParameter) with a new value.

      The root cause of this problem is that sharding_cluster_parameters.idl is only linked in MongoD, not in MongoS.

            Assignee:
            joan.bruguera-mico@mongodb.com Joan Bruguera Micó
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: