mirror of
https://github.com/apache/druid.git
synced 2025-02-09 03:24:55 +00:00
Prevent interrupted exception from polluting log during supervisor shutdown (#4253)
* Prevent interrupted exception from polluting log during supervisor shutdown * do nothing in case of InterruptedException
This commit is contained in:
parent
e02f783e82
commit
eb8e1b0a97
@ -1794,6 +1794,9 @@ public class KafkaSupervisor implements Supervisor
|
|||||||
ServiceMetricEvent.builder().setDimension("dataSource", dataSource).build("ingest/kafka/lag", lag)
|
ServiceMetricEvent.builder().setDimension("dataSource", dataSource).build("ingest/kafka/lag", lag)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
catch (InterruptedException e) {
|
||||||
|
// do nothing, probably we are shutting down
|
||||||
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
log.warn(e, "Unable to compute Kafka lag");
|
log.warn(e, "Unable to compute Kafka lag");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user