Fix Missing Re-Interrupts
This commit is contained in:
@@ -201,12 +201,15 @@ public class KafkaAdmin extends KafkaResourceFactory
|
||||
addOrModifyTopicsIfNeeded(adminClient, newTopics);
|
||||
return true;
|
||||
}
|
||||
catch (Exception e) {
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
if (!this.initializingContext || this.fatalIfBrokerNotAvailable) {
|
||||
throw new IllegalStateException("Could not configure topics", e);
|
||||
throw new IllegalStateException("Could not configure topics", ex);
|
||||
}
|
||||
else {
|
||||
LOGGER.error(e, "Could not configure topics");
|
||||
LOGGER.error(ex, "Could not configure topics");
|
||||
}
|
||||
}
|
||||
finally {
|
||||
|
||||
@@ -488,7 +488,11 @@ public abstract class AbstractMessageListenerContainer<K, V>
|
||||
entry.getValue().get(this.topicCheckTimeout, TimeUnit.SECONDS);
|
||||
return false;
|
||||
}
|
||||
catch (@SuppressWarnings("unused") Exception e) {
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
return true;
|
||||
}
|
||||
catch (@SuppressWarnings("unused") Exception ex) {
|
||||
return true;
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user