Operational Defect Database

BugZero found this defect 38 days ago.

MongoDB | 2638721

mongos cluster parameter cache not updated after setClusterParameter

Last update date:

4/11/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

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.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...