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

Dont re-raise InvalidDefinitions when encountering invalid frames during startup #1015

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viktorerlingsson
Copy link
Member

WHAT is this pull request doing?

Removes the re-raise of InvalidDefinitions on errors when loading definitions on startup, so that LavinMQ can startup even if there are errors when loading definitions. Any queues/exchanges with invalid frames will not be created, and there will be logs detailing why.

Fixes #1014

HOW can this pull request be tested?

Create a queue with x-message-deduplication = true (and no x-cache-size) in v2.1.0, it will fail if upgraded to v2.2.0, but should work with this change.

@viktorerlingsson
Copy link
Member Author

This can potentially lead to problems/dataloss because the queue would not be created when loading definitions. If the queue is later re-declared, that could delete any existing messages.

@viktorerlingsson
Copy link
Member Author

Most pressing problems is fixed by #1019 , but maybe we still want to implement something similar to this, because similar errors can occur in the future, and maybe we don't want LavinMQ to be able to start if some x-argument is missing/bad in definitions.

If we choose to do this, we probably should show the error in GUI somewhere though.

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.

InvalidDefinitions error on startup after upgrade to 2.2.0
1 participant