[ https://issues.apache.org/jira/browse/SOLR-4920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Eldredge updated SOLR-4920: --------------------------------- Attachment: patch.diff Patch against r1492257. > 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 > Attachments: patch.diff > > > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org