mirror of https://github.com/apache/nifi.git
NIFI-6336 Fixed Exception message to refer to the correct port.
This commit is contained in:
parent
92b9a05309
commit
ab15536976
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue