sonar critical for Exception Handling 51/30851/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Thu, 8 Feb 2018 11:49:55 +0000 (17:19 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Thu, 8 Feb 2018 11:49:55 +0000 (17:19 +0530)
Interrupted this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu
Location:
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
Line No-485

Change-Id: I53b7a26028db85cc592a2502ad9b681143a84e38
Issue-ID: DMAAP-243
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index ad1e20f..cd571a9 100644 (file)
@@ -490,6 +490,8 @@ public class MirrorMakerAgent {
                                try {
                                        Thread.sleep(1000);
                                } catch (InterruptedException e) {
+                                       logger.log(Level.WARN, "Interrupted!", e);
+                                       Thread.currentThread().interrupt();
                                }
                        } catch (IOException ex) {
                                ex.printStackTrace();