Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/704#discussion_r71884405
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/cluster/ZooKeeperClientConfig.java
---
@@ -70,7 +75,10 @@ public static ZooKeeperClientConfig createConfig(final
Properties properties) {
if (connectString == null || connectString.trim().isEmpty()) {
throw new IllegalStateException("The '" +
NiFiProperties.ZOOKEEPER_CONNECT_STRING + "' property is not set in
nifi.properties");
}
-
+ final String cleanedConnectString =
cleanConnectString(connectString);
+ if (cleanedConnectString.isEmpty()) {
+ throw new IllegalStateException("The '" +
NiFiProperties.ZOOKEEPER_CONNECT_STRING + "' property is set but contains
unrecognized data in nifi.properties");
--- End diff --
This message could probably be made a little more clear - what is
"unrecognized data"? Perhaps spell out that the expected format is a
comma-separated list of <hostname>:<port> pairs.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---