Restore interrupt status when InterruptedException is caught
This commit is contained in:
parent
87f0d09ace
commit
9210aeacea
|
@ -390,12 +390,14 @@ public class InternalClusterInfoService extends AbstractComponent implements Clu
|
|||
try {
|
||||
nodeLatch.await(fetchTimeout.getMillis(), TimeUnit.MILLISECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt(); // restore interrupt status
|
||||
logger.warn("Failed to update node information for ClusterInfoUpdateJob within 15s timeout");
|
||||
}
|
||||
|
||||
try {
|
||||
indicesLatch.await(fetchTimeout.getMillis(), TimeUnit.MILLISECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt(); // restore interrupt status
|
||||
logger.warn("Failed to update shard information for ClusterInfoUpdateJob within 15s timeout");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue