Re: Derby Lock Escalation: Deadlocks

2013-08-09 Thread mike matrigali
On 8/9/2013 8:37 AM, Katherine Marsden wrote: On 8/7/2013 2:13 PM, Jasmeet Bhatia (jasmbhat) wrote: I am troubleshooting a derby deadlock and need help. (setup - -Derby 10.7.1 + in-memory DB + Hibernate 3.6.9 + spring 3.0.3) Inside a transaction, I execute delete on a specific instance of an e

Re: Derby Lock Escalation: Deadlocks

2013-08-09 Thread Katherine Marsden
On 8/7/2013 2:13 PM, Jasmeet Bhatia (jasmbhat) wrote: I am troubleshooting a derby deadlock and need help. (setup - -Derby 10.7.1 + in-memory DB + Hibernate 3.6.9 + spring 3.0.3) Inside a transaction, I execute delete on a specific instance of an entity that has a 1-* relationship with anothe

Derby Lock Escalation: Deadlocks

2013-08-07 Thread Jasmeet Bhatia (jasmbhat)
I am troubleshooting a derby deadlock and need help. (setup - -Derby 10.7.1 + in-memory DB + Hibernate 3.6.9 + spring 3.0.3) Inside a transaction, I execute delete on a specific instance of an entity that has a 1-* relationship with another entity. This results in an update SQL that tries to b

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-29 Thread Knut Anders Hatlen
Blair Zajac writes: > Knut Anders Hatlen wrote: >> Blair Zajac writes: >> >>> I downloaded d2991-preview-1e.diff and applied it to r737572 of trunk. >>> I don't see the original problem now. Even going to 500 threads and >>> setting derby.locks.waitTimeout to -1 works. >>> >>> Will or when will

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-28 Thread Blair Zajac
Kristian Waagan wrote: Blair Zajac wrote: Kristian Waagan wrote: Blair Zajac wrote: Hello Blair, My only *guess* is that there might be a restructuring of a BTree going on, which is not correctly reported - and you might be experiencing a deadlock. To stop guessing and actually start und

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-28 Thread Blair Zajac
Knut Anders Hatlen wrote: Blair Zajac writes: I downloaded d2991-preview-1e.diff and applied it to r737572 of trunk. I don't see the original problem now. Even going to 500 threads and setting derby.locks.waitTimeout to -1 works. Will or when will a patch for d2991 be applied to trunk? Tha

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-27 Thread Kristian Waagan
Blair Zajac wrote: Kristian Waagan wrote: Blair Zajac wrote: Hello Blair, My only *guess* is that there might be a restructuring of a BTree going on, which is not correctly reported - and you might be experiencing a deadlock. To stop guessing and actually start understanding what's going

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-27 Thread Bryan Pendleton
Blair Zajac writes: I downloaded d2991-preview-1e.diff and applied it to r737572 of trunk. I don't see the original problem now. Even going to 500 threads and setting derby.locks.waitTimeout to -1 works. Excellent! This is great news. External verification of this patch will be very helpful

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-27 Thread Knut Anders Hatlen
Blair Zajac writes: > I downloaded d2991-preview-1e.diff and applied it to r737572 of trunk. > I don't see the original problem now. Even going to 500 threads and > setting derby.locks.waitTimeout to -1 works. > > Will or when will a patch for d2991 be applied to trunk? Thanks for testing the p

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-26 Thread Blair Zajac
Kristian Waagan wrote: Blair Zajac wrote: Hello Blair, My only *guess* is that there might be a restructuring of a BTree going on, which is not correctly reported - and you might be experiencing a deadlock. To stop guessing and actually start understanding what's going on, it would be grea

Re: 50 transactions timing out with no CPU usage and no deadlocks

2009-01-26 Thread Kristian Waagan
Blair Zajac wrote: Hello, I have a test case for my JDBC DAO layer that runs 50 concurrent threads all inserting the same data to ensure that the DAO does not throw an error if the data is already in the table (more details on the app below). After working a while Derby 10.4.2.0 stops making

50 transactions timing out with no CPU usage and no deadlocks

2009-01-25 Thread Blair Zajac
Hello, I have a test case for my JDBC DAO layer that runs 50 concurrent threads all inserting the same data to ensure that the DAO does not throw an error if the data is already in the table (more details on the app below). After working a while Derby 10.4.2.0 stops making progress, the java

Re: lock escalation and deadlocks

2007-08-01 Thread Bogdan Calmac
Hi Bryan (sorry for the misspelling lat time), The insert transaction is really simple (see below) so I am pretty sure it doesn't do anything else else. In support of that, I want to say that the deadlock trace does not reflect the LOCKCOUNT. There are literally about 150 lines in the trace even t

Re: lock escalation and deadlocks

2007-08-01 Thread Bryan Pendleton
Oh, and one more observation. The IX table lock for the insert thread mentions LOCKCOUNT=476. I can only infer the meaning of the column (so this might perfectly normal), but the number of row locks of that connection is about 150 (it could not exceed 200, the number of inserts I do per transactio

Re: lock escalation and deadlocks

2007-08-01 Thread Bogdan Calmac
Oh, and one more observation. The IX table lock for the insert thread mentions LOCKCOUNT=476. I can only infer the meaning of the column (so this might perfectly normal), but the number of row locks of that connection is about 150 (it could not exceed 200, the number of inserts I do per transaction

Re: lock escalation and deadlocks

2007-08-01 Thread Bogdan Calmac
Hi Brian, OK, I see. What I said about escalation is wrong. I looked with new eyes at the trace (see a more relevant summary below) and here's what appears to happen: - 216 (the select thread) holds a lock on 1,1 and waits for a lock on 1,7 - 183 (the insert thread) holds many locks, including

Re: lock escalation and deadlocks

2007-07-31 Thread Bryan Pendleton
> Now, I have a pretty simple unit test that results in a deadlock: > - one thread is inserting records in a table (in transactions of N=200 records) > - another thread comes from behind and reads the same records (select > * where id > $lastReadID) > > After examining the deadlock trace the ex

lock escalation and deadlocks

2007-07-31 Thread Bogdan Calmac
First of all hello to all derby users, Now, I have a pretty simple unit test that results in a deadlock: - one thread is inserting records in a table (in transactions of N=200 records) - another thread comes from behind and reads the same records (select * where id > $lastReadID) After examinin

Re: Deadlocks

2005-07-11 Thread Sunitha Kambhampati
Derby has debug flags that prints out the lock table information to derby.log, and this can help debug lock timeout/deadlock errors. The following faq entry talks about how to enable these flags. http://incubator.apache.org/derby/faq.html#debug_lock_timeout Hope this helps, but please do pos

Deadlocks

2005-07-11 Thread John English
During development, I am sometimes doing stupid things that result in lockups (embedded server, btw). When I find and fix the bugs, the lockups generally go away... but is there an easier way to find out what & where a deadlock was caused by, who/where locked the table concerned, and so on, just t