if (executorSvc != null) {
List<Runnable> tasksLeft = executorSvc.shutdownNow();
LOG.info(tasksLeft.size() + " tasks never executed for msgType: " + type + ". tasks: "
+ tasksLeft);
try {
if (!executorSvc.awaitTermination(200, TimeUnit.MILLISECONDS)) {
LOG.error("executor-service for msgType: " + type
+ " is not fully terminated in 200ms. will disconnect helix-participant");
throw new HelixException("fail to unregister msg-handler for msgType: " + type);
}
} catch (InterruptedException e) {