From b29c2ee4f51f58c55c120eca89f4846112aadaaa Mon Sep 17 00:00:00 2001 From: laa Date: Tue, 10 Oct 2017 18:04:52 +0300 Subject: [PATCH] Issue #7808 was fixed. --- .../common/thread/OScheduledThreadPoolExecutorWithLogging.java | 2 +- .../common/thread/OThreadPoolExecutorWithLogging.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/orientechnologies/common/thread/OScheduledThreadPoolExecutorWithLogging.java b/core/src/main/java/com/orientechnologies/common/thread/OScheduledThreadPoolExecutorWithLogging.java index 81d4ad4e62f..6dcccbd5eb1 100755 --- a/core/src/main/java/com/orientechnologies/common/thread/OScheduledThreadPoolExecutorWithLogging.java +++ b/core/src/main/java/com/orientechnologies/common/thread/OScheduledThreadPoolExecutorWithLogging.java @@ -36,7 +36,7 @@ protected void afterExecute(Runnable r, Throwable t) { try { future.get(); } catch (CancellationException ce) { - t = ce; + //ignore it we cancel tasks on shutdown that is normal } catch (ExecutionException ee) { t = ee.getCause(); } catch (InterruptedException ie) { diff --git a/core/src/main/java/com/orientechnologies/common/thread/OThreadPoolExecutorWithLogging.java b/core/src/main/java/com/orientechnologies/common/thread/OThreadPoolExecutorWithLogging.java index 04d99317e91..9a317671855 100755 --- a/core/src/main/java/com/orientechnologies/common/thread/OThreadPoolExecutorWithLogging.java +++ b/core/src/main/java/com/orientechnologies/common/thread/OThreadPoolExecutorWithLogging.java @@ -38,7 +38,7 @@ protected void afterExecute(Runnable r, Throwable t) { try { future.get(); } catch (CancellationException ce) { - t = ce; + //ignore it we cancel tasks on shutdown that is normal } catch (ExecutionException ee) { t = ee.getCause(); } catch (InterruptedException ie) {