Either re-interrupt this method or rethrow the InterruptedException
Sonar Link:https://sonar.onap.org/project/issues?id=org.onap.dcaegen2.analytics.tca%3Adcae-analytics&open=AWFSduXXof9FJ6jfXJfR&resolved=false&types=BUG
Location:BaseTCADMaaPMRWorker.java:L81
Change-Id: If9bb3688cf2b356fc551d6e5e80bd84f17452fba
Issue-ID: DCAEGEN2-268
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
final String errorMessage =
format("Error while checking TCA DMaaP MR Scheduler worker status name: %s, error: %s",
schedulerName, e);
+ Thread.currentThread().interrupt();
throw new DCAEAnalyticsRuntimeException(errorMessage, LOG, e);
}
}