Log a message about the interrupted exception at this level
@@ -433,6 +433,13 @@ public abstract class ProcessTree implements Iterable<OSProcess>, IProcessTree,
vetoersExist = channelToMaster.call(new DoVetoersExist());
}
}
+ catch (InterruptedException ie) {
+ // If we receive an InterruptedException here, we probably can't do much anyway.
+ // Perhaps we should just return at this point since we probably can't do anything else.
+ // It might make sense to introduce retries, but it's probably not going to get better.
+ LOGGER.log(Level.FINE, "Caught InterruptedException while checking if vetoers exist: ", ie);
+ Thread.interrupted(); // Clear the interrupt flag and just accept that no known vetoers exist.
+ }
catch (Exception e) {
LOGGER.log(Level.WARNING, "Error while determining if vetoers exist", e);
}
