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

[Bug] Unclean shutdown handling in k8s Endpoints discovery #452

Open
andrewazores opened this issue May 10, 2024 · 0 comments
Open

[Bug] Unclean shutdown handling in k8s Endpoints discovery #452

andrewazores opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Needs thorough attention from code reviewers

Comments

@andrewazores
Copy link
Member

Current Behavior

See cryostat-report log at cryostatio/cryostat-operator#816 (comment) .

When Cryostat is shutting down, it looks like it observes its own shutdown via the Endpoints Informer, then tries to act upon that event. However, since it is already shutting down, the database connection is going down and the EntityManager/Session gets closed.

Expected Behavior

When shutting down, Cryostat should stop listening for such discovery events, and if any come in late they should be ignored.

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

@andrewazores andrewazores added bug Something isn't working needs-triage Needs thorough attention from code reviewers labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Needs thorough attention from code reviewers
Projects
None yet
Development

No branches or pull requests

1 participant