We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call stack
2019-04-12 21:53:36,526 ERROR main - Error occurred while doing HealthIndicatorclass com.alipay.sofa.runtime.spring.health.MultiApplicationHealthIndicator readiness check. java.lang.IllegalArgumentException: App is still in startup process, please try later! at org.springframework.util.Assert.isTrue(Assert.java:92) ~[spring-core-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at com.alipay.sofa.healthcheck.service.SofaBootHealthIndicator.health(SofaBootHealthIndicator.java:49) ~[healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.runtime.spring.health.DefaultRuntimeHealthChecker.isHealth(DefaultRuntimeHealthChecker.java:54) ~[runtime-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.runtime.component.impl.StandardSofaRuntimeManager.isHealthCheckPassed(StandardSofaRuntimeManager.java:68) ~[runtime-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.runtime.spring.health.MultiApplicationHealthIndicator.health(MultiApplicationHealthIndicator.java:36) ~[runtime-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.healthcheck.core.HealthIndicatorProcessor.doHealthCheck(HealthIndicatorProcessor.java:107) [healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.healthcheck.core.HealthIndicatorProcessor.readinessHealthCheck(HealthIndicatorProcessor.java:90) [healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.healthcheck.startup.ReadinessCheckListener.readinessHealthCheck(ReadinessCheckListener.java:127) [healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.healthcheck.startup.ReadinessCheckListener.onApplicationEvent(ReadinessCheckListener.java:98) [healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at com.alipay.sofa.healthcheck.startup.ReadinessCheckListener.onApplicationEvent(ReadinessCheckListener.java:43) [healthcheck-sofa-boot-starter-2.6.1.jar!/:2.6.1] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) [spring-context-4.3.19.RELEASE.jar!/:4.3.19.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.16.RELEASE.jar!/:1.5.16.RELEASE]
In previous scenario, we think that SofaBootHealthIndicator should only be called in liveness check:
SofaBootHealthIndicator
public boolean readinessHealthCheck(Map<String, Health> healthMap) { Assert.notNull(healthIndicators, "HealthIndicators must not be null."); logger.info("Begin SOFABoot HealthIndicator readiness check."); boolean result = true; for (String beanId : healthIndicators.keySet()) { if (healthIndicators.get(beanId) instanceof SofaBootHealthIndicator) { continue; } result = doHealthCheck(beanId, healthIndicators.get(beanId), healthMap) && result; } if (result) { logger.info("SOFABoot HealthIndicator readiness check result: success."); } else { logger.error("SOFABoot HealthIndicator readiness check result: failed."); } return result; }
However in ark scenario, MultiApplicationHealthIndicator will call SofaBootHealthIndicator...
MultiApplicationHealthIndicator
The text was updated successfully, but these errors were encountered:
For more backgroud, can refer to #313
Sorry, something went wrong.
fix sofastack#385
f5198c8
No branches or pull requests
call stack
In previous scenario, we think that
SofaBootHealthIndicator
should only be called in liveness check:However in ark scenario,
MultiApplicationHealthIndicator
will callSofaBootHealthIndicator
...The text was updated successfully, but these errors were encountered: