lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fuad Efendi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-2233) DataImportHandler - JdbcDataSource is not thread safe
Date Sun, 05 Jun 2011 07:16:49 GMT

     [ https://issues.apache.org/jira/browse/SOLR-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fuad Efendi updated SOLR-2233:
------------------------------

    Attachment: SOLR-2233.patch

Revised version of old patch (11-Nov-2010); previous version of patch  was hard to read ;-)

Main changes: 
- connection won't close & reopen after timeout
- connection can't be closed by second thread unexpectedly to first thread (initial bug fixed)

Please note it works fine with MS-SQL server. However, concurrent statements (in concurrent
threads) via the same connection object is tricky, JDBC may or may not implement it (JDBC-ODBC
bridge for instance)

> DataImportHandler - JdbcDataSource is not thread safe
> -----------------------------------------------------
>
>                 Key: SOLR-2233
>                 URL: https://issues.apache.org/jira/browse/SOLR-2233
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.5
>            Reporter: Fuad Efendi
>         Attachments: FE-patch.txt, SOLR-2233-JdbcDataSource.patch, SOLR-2233-JdbcDataSource.patch,
SOLR-2233.patch, SOLR-2233.patch
>
>
> Whenever Thread A spends more than 10 seconds on a Connection (by retrieving records
in a batch), Thread B will close connection.
> Related exceptions happen when we use "threads=" attribute for entity; usually exception
stack contains message "connection already closed"
> It shouldn't happen with some JNDI data source, where Connection.close() simply returns
Connection to a pool of available connections, but we might get different errors.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message