Merge "sonar critical for errorhandling"
authorvarun gudisena <vg411h@att.com>
Mon, 9 Apr 2018 23:32:49 +0000 (23:32 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 9 Apr 2018 23:32:49 +0000 (23:32 +0000)
src/main/java/com/att/nsa/cambria/metrics/publisher/impl/DMaaPCambriaSimplerBatchPublisher.java

index 052cc78..d7e6816 100644 (file)
@@ -190,7 +190,8 @@ public class DMaaPCambriaSimplerBatchPublisher extends CambriaBaseClient
                                                + "Consider using CambriaBatchingPublisher.close( long timeout, TimeUnit timeoutUnits ) to recapture unsent messages on close.");
                        }
                } catch (InterruptedException e) {
-                       getLog().warn("Possible message loss. " + e.getMessage(), e);
+                       getLog().info(" Interruption Exception is caught here : " + e.getMessage());
+                       Thread.currentThread().interrupt();
                } catch (IOException e) {
                        getLog().warn("Possible message loss. " + e.getMessage(), e);
                }