diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ae01217bb..dd4936ec369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Enchancement: Simplify Sentry configuration in Spring integration (#1259) * Fix: Fix SentryTransaction#getStatus NPE (#1273) * Enchancement: Optimize SentryTracingFilter when hub is disabled. +* Fix: Interrupt the thread in QueuedThreadPoolExecutor (#1276) * Fix: SentryTransaction#finish should not clear another transaction from the scope (#1278) Breaking Changes: diff --git a/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java b/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java index 5b6651b7ae4..df8cef6b3dc 100644 --- a/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java +++ b/sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java @@ -80,6 +80,7 @@ void waitTillIdle(final long timeoutMillis) { unfinishedTasksCount.waitTillZero(timeoutMillis, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { logger.log(SentryLevel.ERROR, "Failed to wait till idle", e); + Thread.currentThread().interrupt(); } }