diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java index 940c623f801..e1d3a4ec301 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java @@ -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(); }