Skip to content

Commit

Permalink
Delay export server should print stack trace if there are exception o…
Browse files Browse the repository at this point in the history
…ccur. (#8125)
  • Loading branch information
AvengerEug committed Jun 28, 2021
1 parent 99ccb57 commit 11b9936
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -234,7 +234,14 @@ public synchronized void export() {
}

if (shouldDelay()) {
DELAY_EXPORT_EXECUTOR.schedule(this::doExport, getDelay(), TimeUnit.MILLISECONDS);
DELAY_EXPORT_EXECUTOR.schedule(() -> {
try {
// Delay export server should print stack trace if there are exception occur.
this.doExport();
} catch (Exception e) {
logger.error("delay export server occur exception, please check it.", e);
}
}, getDelay(), TimeUnit.MILLISECONDS);
} else {
doExport();
}
Expand Down

0 comments on commit 11b9936

Please sign in to comment.