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
[TEST] split base settings in ClusterDiscoveryConfiguration between node and transport client #8653
[TEST] split base settings in ClusterDiscoveryConfiguration between node and transport client #8653
Conversation
@@ -33,14 +33,9 @@ | |||
|
|||
public class ClusterDiscoveryConfiguration extends SettingsSource { | |||
|
|||
public static Settings DEFAULT_SETTINGS = ImmutableSettings.settingsBuilder() |
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 personally like the fact that those settings were extracted from the code. The name (default) also indicate that these are defaults can be overridden. Don't feel strongly about it though - up to you whether to keep as is.
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 see, I can put the discovery one back as constant but the name default is too generic cause they should get applied only to nodes and not used as base settings for transport client too.
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.
DEFAULT_NODE_SETTINGS?
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.
yea :)
LGTM. Left two minor comments. |
Updated @bleskes thanks for the review |
LGTM |
…ode and transport client The default settings that are currently applied to the transport client are about discovery and gateway, modules that are not even loaded on the transport client. We can now remove the local gateway as it's not the default one anyway. Also, make sure that the discovery setting is only applied to the node, as it is not relevant for transport client. Closes elastic#8653
57a700f
to
c2f1175
Compare
…ode and transport client The default settings that are currently applied to the transport client are about discovery and gateway, modules that are not even loaded on the transport client. We can now remove the local gateway as it's not the default one anyway. Also, make sure that the discovery setting is only applied to the node, as it is not relevant for transport client. Closes elastic#8653
The default settings that are currently applied to the transport client are about discovery and gateway, modules that are not even loaded on the transport client. We can now remove the local gateway as it's the default one anyway. Also, let's make sure that the discovery setting is only applied to the node, as it is not relevant for transport client.