From be6f24c0f95336ab4b6e812ffc59e2bfd90c006e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=B4=E8=8A=82?= Date: Wed, 1 Nov 2023 14:17:01 +0800 Subject: [PATCH] fix SpringContextInstallStage countDownLatch size error --- .../alipay/sofa/boot/isle/stage/SpringContextInstallStage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/boot/isle/stage/SpringContextInstallStage.java b/sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/boot/isle/stage/SpringContextInstallStage.java index f226f79e6..85688f383 100644 --- a/sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/boot/isle/stage/SpringContextInstallStage.java +++ b/sofa-boot-project/sofa-boot-core/isle-sofa-boot/src/main/java/com/alipay/sofa/boot/isle/stage/SpringContextInstallStage.java @@ -154,7 +154,7 @@ private void doRefreshSpringContextParallel() { if (rootDescriptors == null || rootDescriptors.size() == 0) { return; } - final CountDownLatch latch = new CountDownLatch(rootDescriptors.size()); + final CountDownLatch latch = new CountDownLatch(application.getResolvedDeployments().size()); List> futures = new CopyOnWriteArrayList<>(); for (final DeploymentDescriptor deployment : rootDescriptors) {