Describe the bug
Two CONFIG commands in GlideClusterClient use explicit routes that differ from glide-core's defaults:
| Command |
C# Route |
glide-core Default |
ConfigRewriteAsync() |
Route.Random |
AllNodes |
ConfigResetStatisticsAsync() |
AllPrimaries |
AllNodes |
CONFIG REWRITE should persist config on all nodes, not just a random one.
CONFIG RESETSTAT should reset statistics on all nodes (replicas have stats too).
Expected Behavior
These commands should rely on glide-core's default routing of AllNodes.
Current Behavior
ConfigRewriteAsync() only rewrites config on one random node.
ConfigResetStatisticsAsync() only resets stats on primaries, leaving replica stats unchanged.
Possible Solution
Remove the explicit route parameter from both methods so glide-core's correct AllNodes default applies.
Open investigation
ConfigGetAsync(ValkeyValue) routes to AllPrimaries while glide-core defaults to Random. This may be intentional (returns a multi-node view of config) but should be reviewed.
Related
Describe the bug
Two
CONFIGcommands inGlideClusterClientuse explicit routes that differ from glide-core's defaults:ConfigRewriteAsync()Route.RandomConfigResetStatisticsAsync()CONFIG REWRITEshould persist config on all nodes, not just a random one.CONFIG RESETSTATshould reset statistics on all nodes (replicas have stats too).Expected Behavior
These commands should rely on glide-core's default routing of AllNodes.
Current Behavior
ConfigRewriteAsync()only rewrites config on one random node.ConfigResetStatisticsAsync()only resets stats on primaries, leaving replica stats unchanged.Possible Solution
Remove the explicit route parameter from both methods so glide-core's correct AllNodes default applies.
Open investigation
ConfigGetAsync(ValkeyValue)routes to AllPrimaries while glide-core defaults to Random. This may be intentional (returns a multi-node view of config) but should be reviewed.Related