diff options
author | efiacor <fiachra.corcoran@est.tech> | 2020-04-16 14:59:07 +0100 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2020-04-16 15:03:50 +0100 |
commit | 5906de2465975e42e4983abe411f30fa16050fdf (patch) | |
tree | 81bf98d48c6e09f9d545f993bcd9416c510ea109 /datarouter-node/src/main | |
parent | 8552e04175c7091d0d748e0c0f4b14a0d9321b40 (diff) |
Fix sonar issues and reporting
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I29aa54e62d2dfaa6eddb16eb67c325254dfc0e06
Issue-ID: DMAAP-1426
Diffstat (limited to 'datarouter-node/src/main')
-rw-r--r-- | datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java index 388b6793..0d030683 100644 --- a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java +++ b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java @@ -424,7 +424,9 @@ public class NodeServlet extends HttpServlet { mw.write("X-DMAAP-DR-ROUTING\t" + t.getRouting() + "\n"); } mw.close(); - meta.renameTo(new File(dbase + ".M")); + if (!meta.renameTo(new File(dbase + ".M"))) { + eelfLogger.error("Rename of file " + dbase + " failed."); + } } resp.setStatus(HttpServletResponse.SC_NO_CONTENT); try { |