Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 390FA200BB8 for ; Fri, 28 Oct 2016 17:23:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 37CB8160AF5; Fri, 28 Oct 2016 15:23:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7FDE1160AE3 for ; Fri, 28 Oct 2016 17:22:59 +0200 (CEST) Received: (qmail 56293 invoked by uid 500); 28 Oct 2016 15:22:58 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 56265 invoked by uid 99); 28 Oct 2016 15:22:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 15:22:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8BA952C001E for ; Fri, 28 Oct 2016 15:22:58 +0000 (UTC) Date: Fri, 28 Oct 2016 15:22:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4972) Drillbit shuts down immediately after starting if embedded web server is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Oct 2016 15:23:00 -0000 [ https://issues.apache.org/jira/browse/DRILL-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615702#comment-15615702 ] ASF GitHub Bot commented on DRILL-4972: --------------------------------------- Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/633#discussion_r85552294 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/work/WorkManager.java --- @@ -295,7 +295,7 @@ public FragmentExecutor getFragmentRunner(final FragmentHandle handle) { */ private class StatusThread extends Thread { public StatusThread() { - setDaemon(true); + setDaemon(false); --- End diff -- .. but this will make sure that is the case. > Drillbit shuts down immediately after starting if embedded web server is disabled > --------------------------------------------------------------------------------- > > Key: DRILL-4972 > URL: https://issues.apache.org/jira/browse/DRILL-4972 > Project: Apache Drill > Issue Type: Bug > Components: Server > Affects Versions: 1.8.0 > Reporter: Sudheesh Katkam > Assignee: Sorabh Hamirwasia > Priority: Critical > Fix For: 1.9.0 > > > Disable embedded web server by setting "drill.exec.http.enabled" to false. Now when drillbit is started, it shuts down immediately after starting. > JVM exits when the only threads running are all daemon threads. Turns out all threads in a drillbit, other than the thread pool started by the web server, are daemon. So I suggest WorkManager#StatusThread be made non-daemon. -- This message was sent by Atlassian JIRA (v6.3.4#6332)