aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java6
-rwxr-xr-xpom.xml2
-rw-r--r--version.properties2
3 files changed, 5 insertions, 5 deletions
diff --git a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
index 298e1858..5b5245da 100644
--- a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
+++ b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeConfigManager.java
@@ -112,10 +112,10 @@ public class NodeConfigManager implements DeliveryQueueHelper {
private NodeConfigManager() {
Properties drNodeProperties = new Properties();
- try {
+ try (FileInputStream fileInputStream = new FileInputStream(System
+ .getProperty("org.onap.dmaap.datarouter.node.properties", "/opt/app/datartr/etc/node.properties"))) {
eelfLogger.debug("NODE0301 Loading local config file node.properties");
- drNodeProperties.load(new FileInputStream(System
- .getProperty("org.onap.dmaap.datarouter.node.properties", "/opt/app/datartr/etc/node.properties")));
+ drNodeProperties.load(fileInputStream);
} catch (Exception e) {
NodeUtils.setIpAndFqdnForEelf(NODE_CONFIG_MANAGER);
eelfLogger.error(EelfMsgs.MESSAGE_PROPERTIES_LOAD_ERROR, e,
diff --git a/pom.xml b/pom.xml
index 041891b3..a7b13c95 100755
--- a/pom.xml
+++ b/pom.xml
@@ -36,7 +36,7 @@
</parent>
<properties>
<!--revision must also be set in the version.properties file at project root-->
- <revision>2.1.8-SNAPSHOT</revision>
+ <revision>2.1.9-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
diff --git a/version.properties b/version.properties
index cdff0bd7..62075a0a 100644
--- a/version.properties
+++ b/version.properties
@@ -27,7 +27,7 @@
major=2
minor=1
-patch=8
+patch=9
base_version=${major}.${minor}.${patch}