[ 
https://issues.apache.org/jira/browse/DRILL-6909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881147#comment-16881147
 ] 

Anton Gozhiy commented on DRILL-6909:
-------------------------------------

In embedded mode Drill JDBC driver starts Drill itself if the specific 
connection string is used: "jdbc:drill:zk=local". And then Sqlline uses this 
JDBC connection only, which doesn't imply any callbacks to the process that 
opened it.
Possible solution is to add a callback method say in DriverImpl class and then 
handle it in Sqlline. But that will create an unnecessary coupling which is not 
good.
Another thing to take in account is that Sqlline is not the only one to start 
Drill in embedded mode, for example, we can use Squirrel, providing it the 
right connection string and Drill classpath.

> Graceful shutdown does not kill the process when drill is run in embedded mode
> ------------------------------------------------------------------------------
>
>                 Key: DRILL-6909
>                 URL: https://issues.apache.org/jira/browse/DRILL-6909
>             Project: Apache Drill
>          Issue Type: Sub-task
>    Affects Versions: 1.13.0
>            Reporter: Volodymyr Vysotskyi
>            Assignee: Anton Gozhiy
>            Priority: Minor
>             Fix For: 1.17.0
>
>
> Graceful shutdown does not kill the process when drill is run in embedded 
> mode.
> Steps to reproduce:
> 1. Run drill in embedded mode.
> 2. Press the "Shutdown" button in Web-UI.
> 3. Check that the process which corresponds to the Drill wasn't killed.
> This issue is observed only for embedded mode.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to