Chris Eldredge created SOLR-4920:
------------------------------------
Summary: DIH JdbcDataSource exception handling
Key: SOLR-4920
URL: https://issues.apache.org/jira/browse/SOLR-4920
Project: Solr
Issue Type: Bug
Components: contrib - DataImportHandler
Affects Versions: 4.3, 5.0
Reporter: Chris Eldredge
Priority: Minor
JdbcDataSource will incorrectly suppress exceptions when retrieving a
connection from a JNDI context and fall back to trying to use DriverManager to
obtain a connection. This makes it impossible to troubleshoot misconfigured
JNDI DataSource.
Additionally, when a SQLException is thrown while initializing a connection,
such as in setAutoCommit(), the connection will not be closed. This can cause a
resource leak.
A patch will be attached with unit tests that addresses both issues.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]