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

Pierre Villard commented on NIFI-4187:
--------------------------------------

Went through the verification process suggested in the comment before and after 
applying the change. Confirmed it's working as expected. Run contrib-check. All 
good, merging to master.

> 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
>            Assignee: Andy LoPresto
>            Priority: Critical
>              Labels: bootstrap, encryption
>             Fix For: 1.4.0
>
>
> 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)

Reply via email to