Skip to content

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