You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Russell Bateman (JIRA)" <ji...@apache.org> on 2017/01/18 15:11:26 UTC
[jira] [Created] (NIFI-3364) NiFi start-up fails to honor N in
definitions java.arg.N as made in conf/bootstrap.conf
Russell Bateman created NIFI-3364:
-------------------------------------
Summary: NiFi start-up fails to honor N in definitions java.arg.N as made in conf/bootstrap.conf
Key: NIFI-3364
URL: https://issues.apache.org/jira/browse/NIFI-3364
Project: Apache NiFi
Issue Type: Improvement
Components: Configuration
Affects Versions: 1.0.1, 1.1.1, 0.7.1, 1.2.0
Environment: Any and all platforms and environments.
Reporter: Russell Bateman
Priority: Critical
Fix For: 1.2.0, 1.0.1, 1.1.1, 0.7.1
In albeit rare cases, JVM argument ordering is important. The present implementation of the sense of java.arg.N leaves N ignored in the final list when presented to the JVM at launch.
Two examples of insurmountably critical ordering are the use the Java Flight Recorder and the JMX remote arguments in support of using Java Mission Control remotely to connect to and profile (what's being done by) NiFi.
Attached is a coded solution for replacing this block of code in RunNiFi.java:
for (final Map.Entry<String, String> entry : props.entrySet()) {
final String key = entry.getKey();
final String value = entry.getValue();
if (key.startsWith("java.arg")) {
javaAdditionalArgs.add(value);
}
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)