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

exit 5 instead of raising error if no etcd endpoint responds #886

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

viktorerlingsson
Copy link
Member

WHAT is this pull request doing?

Exit 5 (5th letter, E, for etcd) instead of raising error when no etcd endpoint responds.

fixes #872

HOW can this pull request be tested?

Try starting LavinMQ with clustering enabled and no etcd running.

@viktorerlingsson viktorerlingsson requested a review from a team as a code owner December 16, 2024 14:44
@carlhoerberg
Copy link
Member

I did this for exit 3: 5fd0ea0 So it won't exit specs.. it's not pretty though :/

So that the errors can be caught in specs.
In lavinmq.cr is the exit done
@viktorerlingsson
Copy link
Member Author

I did this for exit 3: 5fd0ea0 So it won't exit specs.. it's not pretty though :/

Did the same here for now 👍

IMO let's go with that solution until we figure out something better!

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.

Crashes on startup if etcd isn't available
2 participants