You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andy LoPresto (JIRA)" <ji...@apache.org> on 2017/07/14 22:45:00 UTC
[jira] [Created] (NIFI-4187) If NiFi process is killed, bootstrap
auto-restart hangs on missing sensitive key file
Andy LoPresto created NIFI-4187:
-----------------------------------
Summary: If NiFi process is killed, bootstrap auto-restart hangs on missing sensitive key file
Key: NIFI-4187
URL: https://issues.apache.org/jira/browse/NIFI-4187
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 1.3.0
Reporter: Andy LoPresto
Priority: Critical
If the NiFi process is killed and {{autoRestart}} is enabled in the bootstrap process ({{RunNiFi.java}}) (enabled by default except when in {{run}} mode) and the instance is using encrypted configuration files, the {{sensitive.key}} file which contains the master encryption key is no longer available when restart occurs. This results in the application exiting.
To resolve this, the logic to prepare and generate the sensitive key file should be extracted to a method and invoked during initial start *and* during the auto-restart loop at https://github.com/apache/nifi/blob/master/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java#L1159 .
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)