-
Notifications
You must be signed in to change notification settings - Fork 985
DRILL-4841: Use server event loop for web clients #565
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,8 @@ protected DrillClient createDrillClient(final String userName, final String pass | |
| .setConfig(drillbitContext.getConfig()) | ||
| .setClusterCoordinator(drillbitContext.getClusterCoordinator()) | ||
| .setAllocator(drillbitContext.getAllocator()) | ||
| .setEventLoopGroup(drillbitContext.getUserLoopGroup()) | ||
| .setExecutorService(drillbitContext.getExecutor()) | ||
| .build(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the builder be extended to also (optionally) do connect? Or, return a connect builder? Here I'm thinking that it would be helpful to have a single builder gather things like the user name property and the connection string (which would seem to be a DrillClient parameter but is actually a connection property.) That is, either: Or |
||
| final Properties props = new Properties(); | ||
| props.setProperty("user", userName); | ||
|
|
||
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.
Please add a comment here stating that "userLoopGroup" threads will be used for "UserServerRPCThreads" and "ClientRPCThreads" in WebServer DrillClient instance.