Open christophlehmann opened 1 month ago
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.
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