Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 72351 invoked from network); 12 Nov 2010 13:53:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 13:53:08 -0000 Received: (qmail 89425 invoked by uid 500); 12 Nov 2010 13:53:39 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 89106 invoked by uid 500); 12 Nov 2010 13:53:38 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 89099 invoked by uid 99); 12 Nov 2010 13:53:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 13:53:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 13:53:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oACDrEQG009712 for ; Fri, 12 Nov 2010 13:53:14 GMT Message-ID: <6928773.45771289569994542.JavaMail.jira@thor> Date: Fri, 12 Nov 2010 08:53:14 -0500 (EST) From: "Fuad Efendi (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (SOLR-2233) DataImportHandler - JdbcDataSource is not thread safe In-Reply-To: <918792.29101289494154738.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931401#action_12931401 ] Fuad Efendi commented on SOLR-2233: ----------------------------------- The only remaining problem is what to do if Database Server closed/dropped connection or something like that (for instance, due to timeout settings on a database, or due to heavy load, or network problem). The more time required to index data, the more frequent problems. Even connection pool (accessed via JNDI) won't help because existing (and new) code tries to keep the same connection for a long time, without any logic to check that connection is still alive. What to do if we are in the middle of RecordSet and database dropped connection? > DataImportHandler - JdbcDataSource is not thread safe > ----------------------------------------------------- > > Key: SOLR-2233 > URL: https://issues.apache.org/jira/browse/SOLR-2233 > Project: Solr > Issue Type: Bug > Affects Versions: 1.5 > Reporter: Fuad Efendi > Attachments: FE-patch.txt, SOLR-2233-JdbcDataSource.patch, SOLR-2233-JdbcDataSource.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. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org