-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add configuration to disable Redis Cluster dynamic sources refresh #22571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration to disable Redis Cluster dynamic sources refresh #22571
Conversation
This commit adds an option to enable/disable the DynamicRefreshSources setting on the Lettuce cluster toplogy refresh options. Closes gh-22398
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I've added a couple comments.
@@ -410,6 +410,13 @@ public Refresh getRefresh() { | |||
*/ | |||
private boolean adaptive; | |||
|
|||
/** | |||
* Whether discovered nodes should be used as the source for the cluster | |||
* topology. When set to {@literal false}, only the initial seed nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't use Javadoc tag here as the annotation processor don't handle them.
* topology. When set to {@literal false}, only the initial seed nodes | ||
* will be used as sources for topology discovery. | ||
*/ | ||
private Boolean dynamicSources = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The null
initialization here is unnecessary. The AP will figure out the right default for a wrapper type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought so but I noticed it explicitly specified in places like this. I will remove the redundant initialization.
This commit adds an option to enable/disable the DynamicRefreshSources setting on the Lettuce cluster toplogy refresh options. See gh-22571
Thanks again Chris. I've decided to switch the |
This commit adds an option to enable/disable the DynamicRefreshSources setting on the Lettuce cluster toplogy refresh options.
Closes gh-22398