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

Runtime: error instead of panic when creating models on Druid #3732

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

begelundmuller
Copy link
Contributor

Prevents the panics observed in these logs

Copy link
Member

@k-anshul k-anshul left a comment

Choose a reason for hiding this comment

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

Do we want to raise errors instead of panics for developer errors ?

@begelundmuller
Copy link
Contributor Author

begelundmuller commented Dec 21, 2023

Do we want to raise errors instead of panics for developer errors ?

Yeah we do, but in this case a user can trigger this case by adding a model to a Druid-backed project. For user errors, we don't want to panic. You could argue we should never let these code paths be hit for non-Druid projects (i.e. check upstream), but this seems easiest for now :)

@begelundmuller begelundmuller merged commit 41d5c35 into main Dec 21, 2023
4 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/dont-panic-druid-models branch December 21, 2023 10:28
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.

2 participants