Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5451180BA for ; Wed, 10 Feb 2016 00:19:18 +0000 (UTC) Received: (qmail 88552 invoked by uid 500); 10 Feb 2016 00:19:18 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 88411 invoked by uid 500); 10 Feb 2016 00:19:18 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 88393 invoked by uid 99); 10 Feb 2016 00:19:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 00:19:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 515F52C0AFA for ; Wed, 10 Feb 2016 00:19:18 +0000 (UTC) Date: Wed, 10 Feb 2016 00:19:18 +0000 (UTC) From: "Oleg Zhurakousky (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NIFI-1493) InvokeScriptedProcessor should not create an instance of Executor until its actually used MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NIFI-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15140070#comment-15140070 ] Oleg Zhurakousky commented on NIFI-1493: ---------------------------------------- The issue is with InvokeScriptedProcessor that went in with the new NAR. It was creating an instance of the Executor as part of the call to _getSupportedPropertyDescriptors()_ which is invoked even if bundle is not used. The instance of the executor was created and never shut down. Since all that happens within the NiFi JVM process, process would never exit even though the NiFi shutdown sequence completed successfully. > InvokeScriptedProcessor should not create an instance of Executor until its actually used > ----------------------------------------------------------------------------------------- > > Key: NIFI-1493 > URL: https://issues.apache.org/jira/browse/NIFI-1493 > Project: Apache NiFi > Issue Type: Bug > Reporter: Oleg Zhurakousky > Assignee: Oleg Zhurakousky > Fix For: 0.6.0 > > > When shutting down NiFi even when there is nothing going on (e.g., no flow), it takes some time eventually resulting in process kill > {code} > 2016-02-09 08:54:08,839 INFO [main] org.apache.nifi.bootstrap.Command Apache NiFi has accepted the Shutdown Command and is shutting down now > 2016-02-09 08:54:08,890 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:10,904 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:12,912 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:14,926 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:16,940 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:18,954 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:20,967 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:22,981 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:24,992 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:27,002 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:29,013 INFO [main] org.apache.nifi.bootstrap.Command Waiting for Apache NiFi to finish shutting down... > 2016-02-09 08:54:29,020 WARN [main] org.apache.nifi.bootstrap.Command NiFi has not finished shutting down after 20 seconds. Killing process. > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)