Either re-interrupt this method or rethrow the InterruptedException
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VahN32hFUzlqc5tz&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/cambria/resources/CambriaOutboundEventStream.java
Line No-329
Change-Id: If36c06fc3fbfd94a455e90b2c1f5c12ed7575eb4
Issue-ID: DMAAP-417
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
import com.att.nsa.cambria.utils.DMaaPResponseBuilder.StreamWriter;
import com.att.nsa.cambria.utils.Utils;
+import jline.internal.Log;
+
/**
* class used to write the consumed messages
// FIXME: would be good to wait/signal
Thread.sleep(100);
} catch (InterruptedException e) {
- // ignore
+ Log.error(e.toString());
+ Thread.currentThread().interrupt();
}
}
});