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

[TASK] Do not ignore database exceptions #4200

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

Conversation

christophlehmann
Copy link
Contributor

@christophlehmann christophlehmann commented Oct 24, 2024

What this pr does

This removes a try catch block around a select query.

When a database query is not okay for any reason, then i like to get the reason directly.

Fixes: #4199

This removes a try catch block around a select query. 

When a database query is not okay for any reason, then i like to get the reason directly.
@masi
Copy link

masi commented Nov 4, 2024

I agree that muted exceptions are a no-go, but IMHO a proper handling is much better than letting the application break with an unhandled exception. And there are already enough of completely unhelpful stack traces in logs created by Solr.

I suggest at least logging the SQL statement and the context in some readable manner before letting the calling code choke on the exception.

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.

[TASK] Do not ignore database exceptions
3 participants