-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Enable Netty 4 extensions #19767
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
Enable Netty 4 extensions #19767
Conversation
This commit enables the Netty 4 HTTP server implementation to allow for extensions.
The Netty 4 transport implementations have an unnecessary dependency on SocketChannels, and can instead just use plain Channels.
| serverBootstraps.put(name, serverBootstrap); | ||
| } | ||
|
|
||
| protected ChannelHandler getServerChannelInitializer(String name, Settings 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.
is there a reason not to inline this method and the one below?
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.
Yes, to enable extensions.
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.
Discussed this with @jasontedor, he explained that this class can be extended and these methods need to be overridable.
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.
shall we document the fact that these methods can be extended?
|
LGTM |
* master: Fix REST test documentation [Test] move methods from bwc test to test package for use in plugins (elastic#19738) package-info.java should be in src/main only. Split regular histograms from date histograms. elastic#19551 Tighten up concurrent store metadata listing and engine writes (elastic#19684) Plugins: Make NamedWriteableRegistry immutable and add extenion point for named writeables Add documentation for the 'elasticsearch-translog' tool [TEST] Increase time waiting for all shards to move off/on to a node Fixes the active shard count check in the case of (elastic#19760) Fixes cat tasks operation in detailed mode ignore some docker craziness in scccomp environment checks
This pull request enables some extensions to the Netty 4 implementation.
Relates #19526