Skip to content
New issue

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

Remove startup pubsub validation #1018

Merged
merged 1 commit into from
Mar 22, 2022
Merged

Conversation

elefeint
Copy link
Contributor

@elefeint elefeint commented Mar 21, 2022

We've had failures reported on startup due to startup subscription checking taking too long. While this can be worked around with a longer timeout, actuator healthchecks are a cross-cutting concern that should not prevent application startup.

Fixes #648.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@zhumin8 zhumin8 added this to the v3.2.0 milestone Mar 21, 2022
Copy link
Contributor

@zhumin8 zhumin8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We never mentioned this in our doc in the first place, but do you think it worth to put a note in there that it's up to application to validate health checker?

@elefeint
Copy link
Contributor Author

I don't think so -- we are just bringing the behavior back to what actuator healthchecks normally do. These healthchecks can be exposed to dashboards, rolling up to Kubernetes liveness (although that's a bad idea because Kubernetes will then restart the pod, which is pointless if there is a connectivity issue to Pub/Sub).

@elefeint elefeint merged commit fd494df into main Mar 22, 2022
@elefeint elefeint deleted the pubsub-remove-startup-healthcheck branch March 22, 2022 13:46
elefeint added a commit that referenced this pull request Mar 22, 2022
elefeint added a commit that referenced this pull request Mar 22, 2022
* remove startup pubsub validation (#1018)
kateryna216 added a commit to kateryna216/spring-cloud-gcp that referenced this pull request Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubSubHeathContributor timeout exception on SpringBoot 2.5.5 start up
2 participants