curator.blockUntilConnected();
} catch (InterruptedException e) {
log.error("error while setting curator framework :",e);
- //Thread.currentThread().interrupt();
+ Thread.currentThread().interrupt();
}
}
Thread.sleep(consumerHandoverWaitMs);
} catch (InterruptedException e) {
log.error("InterruptedException in dropTimedOutConsumer",e);
- //Thread.currentThread().interrupt();
+ Thread.currentThread().interrupt();
}
log.info("Dropped " + key + " consumer due to timeout");
}