NIFI-6336 Fixed Exception message to refer to the correct port.

This commit is contained in:
mtien 2019-12-18 15:06:45 -08:00
parent 92b9a05309
commit ab15536976
2 changed files with 2 additions and 2 deletions

View File

@ -744,7 +744,7 @@ public abstract class NiFiProperties {
}
int socketPort = getClusterNodeProtocolPort();
if (socketPort == 0) {
throw new RuntimeException("Load balance port cannot be 0. Port must be inclusively in the range [1, 65535].");
throw new RuntimeException("Cluster Node Protocol port cannot be 0. Port must be inclusively in the range [1, 65535].");
}
return InetSocketAddress.createUnresolved(socketAddress, socketPort);
} catch (Exception ex) {

View File

@ -191,7 +191,7 @@ public class NiFiPropertiesTest {
// Arrange
// Port Value is invalid Format
String portValue = "8000a";
String portValue = "8000";
Map<String, String> additionalProperties = new HashMap<>();
additionalProperties.put(NiFiProperties.CLUSTER_NODE_PROTOCOL_PORT, portValue);
NiFiProperties properties = loadNiFiProperties("/NiFiProperties/conf/nifi.blank.properties", additionalProperties);