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

mongos cluster parameter cache not updated after setClusterParameter

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL

      Setting a cluster parameter in a sharded cluster, and immediately executing a command on the same mongos that set the parameter, may result in the command seeing an old value (or default). 

      This is because the mongos writes the cluster parameter to the config server, but does not refresh its cache correspondingly. This refresh only happens on startup, when executing getClusterParameter, or periodically (default 30s) due to the 
      ClusterServerParameterRefresher.

      It seems reasonable to expect the mongos which updated the cluster parameter to respect the new value in sequential operations.

            Assignee:
            Unassigned Unassigned
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: