[
https://issues.apache.org/jira/browse/DRILL-7650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062554#comment-17062554
]
ASF GitHub Bot commented on DRILL-7650:
---------------------------------------
ihuzenko commented on pull request #2031: DRILL-7650: Add option to enable
Jetty's dump for troubleshooting
URL: https://github.com/apache/drill/pull/2031#discussion_r395015959
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/WebServer.java
##########
@@ -163,6 +163,7 @@ public void start() throws Exception {
embeddedJetty.addConnector(connector);
final boolean portHunt = config.getBoolean(ExecConstants.HTTP_PORT_HUNT);
+
embeddedJetty.setDumpAfterStart(config.getBoolean(ExecConstants.HTTP_JETTY_SERVER_DUMP_AFTER_START));
Review comment:
Could you please explain why? The method called already before the port
hunting loop. Moving it below doesn't make sense since it will be too late to
set the flag on ```embeddedJetty``` object.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Add option to enable Jetty's dump for troubleshooting
> -----------------------------------------------------
>
> Key: DRILL-7650
> URL: https://issues.apache.org/jira/browse/DRILL-7650
> Project: Apache Drill
> Issue Type: Improvement
> Components: Web Server
> Reporter: Igor Guzenko
> Assignee: Igor Guzenko
> Priority: Minor
> Fix For: 1.18.0
>
>
> Jetty server implements a useful tool for
> [dumping|https://www.eclipse.org/jetty/documentation/current/jetty-dump-tool.html#dump-tool-via-jmx]
> the current state of the server, but in Drill, it's not possible to use it
> without code changes. This ticket aims to add option
> *drill.exec.http.jetty.server.dumpAfterStart* in Apache Drill.
> Another change is to remove the redundant setProtocol(protocol) method call
> on sslContextFactory instance.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)