From 56e0ba25414c368482cd6f347378c619b766bb00 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Tue, 17 Oct 2023 15:48:27 +0530 Subject: [PATCH] fix: Race condition in deleting the loading page (#28155) In addition to the polling loop that waits for backend to be ready to delete the loading page, this PR will make the backend also try and delete the loading page once it's ready to accept incoming requests. Tested locally. --- .../server/configurations/InstanceConfig.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java index 1bff58da62..6594df788c 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/InstanceConfig.java @@ -12,6 +12,10 @@ import org.springframework.context.ApplicationListener; import org.springframework.stereotype.Component; import reactor.core.publisher.Mono; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; + import static java.lang.Boolean.TRUE; @Slf4j @@ -25,8 +29,18 @@ public class InstanceConfig implements ApplicationListener registrationAndRtsCheckMono = configService .getByName(Appsmith.APPSMITH_REGISTERED)