Sonar critical issues 15/41315/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 6 Apr 2018 05:19:00 +0000 (10:49 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 6 Apr 2018 05:19:00 +0000 (10:49 +0530)
 Either re-interrupt this method or rethrow the InterruptedException
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AV4-MbRr32hFUzlqc5eI&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
Line No-174

Change-Id: Ic9fd4b13bc0fd7c308b704f393b379f27b577391
Issue-ID: DMAAP-390
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java

index 77d47e8..c234678 100644 (file)
@@ -173,6 +173,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP
                        }
                } catch (InterruptedException e) {
                        getLog().warn("Possible message loss. " + e.getMessage(), e);
+                       Thread.currentThread().interrupt();
                } catch (IOException e) {
                        getLog().warn("Possible message loss. " + e.getMessage(), e);
                }