Re: Deadlock with DirectUpdateHandler2

2008-11-20 Thread Ryan McKinley
I'm also hitting some threading issues with autocommit -- JConsole does not show deadlock, but it shows some threads 'BLOCKED' on scheduleCommitWithin Perhaps this has something to do with the changes we made for: SOLR-793 I am able to fix this (at least I don't see the blocking with the dat

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Mike Klaas
On 18-Nov-08, at 12:18 PM, Mark Miller wrote: Mike Klaas wrote: autoCommitCount is written in a CommitTracker.synchronized block only. It is read to print stats in an unsynchronized fashion, which perhaps could be fixed, though I can't see how it could cause a problem lastAddedTime i

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Toby Cole
On 18 Nov 2008, at 20:18, Mark Miller wrote: Mike Klaas wrote: autoCommitCount is written in a CommitTracker.synchronized block only. It is read to print stats in an unsynchronized fashion, which perhaps could be fixed, though I can't see how it could cause a problem lastAddedTime is

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Mark Miller
Mike Klaas wrote: autoCommitCount is written in a CommitTracker.synchronized block only. It is read to print stats in an unsynchronized fashion, which perhaps could be fixed, though I can't see how it could cause a problem lastAddedTime is only written in a call path within a DirectUpdate

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Mike Klaas
On 18-Nov-08, at 8:54 AM, Mark Miller wrote: Mark Miller wrote: Toby Cole wrote: Has anyone else experienced a deadlock when the DirectUpdateHandler2 does an autocommit? I'm using a recent snapshot from hudson (apache- solr-2008-11-12_08-06-21), and quite often when I'm loading data the s

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Mark Miller
Mark Miller wrote: Toby Cole wrote: Has anyone else experienced a deadlock when the DirectUpdateHandler2 does an autocommit? I'm using a recent snapshot from hudson (apache-solr-2008-11-12_08-06-21), and quite often when I'm loading data the server (tomcat 6) gets stuck at line 469 of DirectU

Re: Deadlock with DirectUpdateHandler2

2008-11-18 Thread Mark Miller
Toby Cole wrote: Has anyone else experienced a deadlock when the DirectUpdateHandler2 does an autocommit? I'm using a recent snapshot from hudson (apache-solr-2008-11-12_08-06-21), and quite often when I'm loading data the server (tomcat 6) gets stuck at line 469 of DirectUpdateHandler2: