You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Anton Gozhiy (JIRA)" <ji...@apache.org> on 2019/07/09 11:26:00 UTC

[jira] [Commented] (DRILL-6909) Graceful shutdown does not kill the process when drill is run in embedded mode

    [ 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)