From 7ac6e4c50ef5cc851e3f224445a788f709f08929 Mon Sep 17 00:00:00 2001 From: Bryan Bende Date: Mon, 30 Sep 2019 14:19:07 -0400 Subject: [PATCH] NIFI-6711 Clear secret key when auto restarting in order to obtain new secret key from the NiFi process This closes #3780. Signed-off-by: Kevin Doran --- .../src/main/java/org/apache/nifi/bootstrap/RunNiFi.java | 1 + 1 file changed, 1 insertion(+) diff --git a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java index 50a0e32434..2adefc18fa 100644 --- a/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java +++ b/nifi-bootstrap/src/main/java/org/apache/nifi/bootstrap/RunNiFi.java @@ -1200,6 +1200,7 @@ public class RunNiFi { } defaultLogger.warn("Apache NiFi appears to have died. Restarting..."); + secretKey = null; process = builder.start(); handleLogging(process);