![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Ingres 9.2 on AIX 6.1 I have two programs: 1. Doing a cursor select on a table. 2. Doing an insert on the same table. I am 100% sure that "readlock=nolock" is set for all sessions. |
|
Both transactions hang and I can see loads of lock timeouts in the ingres error log. |
|
Killing program 1 unblocks program 2. Is this an Ingres bug? |
#4
| |||
| |||
|
|
Hi, Ingres 9.2 on AIX 6.1 I have two programs: 1. Doing a cursor select on a table. 2. Doing an insert on the same table. I am 100% sure that "readlock=nolock" is set for all sessions. Both transactions hang and I can see loads of lock timeouts in the ingres error log. |
#5
| |||
| |||
|
|
I learned that lesson the hard way, years ago, and it was sufficiently painful that it stuck with me. :-) |
#6
| |||||
| |||||
|
|
Mark wrote: Ingres 9.2 on AIX 6.1 I have two programs: 1. Doing a cursor select on a table. 2. Doing an insert on the same table. I am 100% sure that "readlock=nolock" is set for all sessions. I hope you fully understand ALL the implications of that. |
|
Both transactions hang and I can see loads of lock timeouts in the ingres error log. That can't be right. In the first place if the application is using READLOCK=NOLOCK it won't attempt a lock, won't wait, and won't time out, so you won't see a lock timeout in the log. |
|
Killing program 1 unblocks program 2. Is this an Ingres bug? More likely an application bug. |
|
Use security query_text auditing or trace point SC930 to see what the applications are doing. |
|
Another possibility is that there is a third participant you don't know about that is locking (taking an ordinary lock or a control lock). |
#7
| |||
| |||
|
|
Karl Schendel wrote: I learned that lesson the hard way, years ago, and it was sufficiently painful that it stuck with me. :-) What were you doing using a cursor anyway? You know better. :-) |
#8
| |||
| |||
|
|
Use security query_text auditing or trace point SC930 to see what the applications are doing. Never heard of those. I'll have to look them up. |
#9
| |||
| |||
|
|
http://community.ingres.com/wiki/DBM..._Query_Tracing |
#10
| |||
| |||
|
|
On Mar 10, 2011, at 4:37 AM, Mark wrote: Hi, Ingres 9.2 on AIX 6.1 I have two programs: 1. Doing a cursor select on a table. 2. Doing an insert on the same table. I am 100% sure that "readlock=nolock" is set for all sessions. Both transactions hang and I can see loads of lock timeouts in the ingres error log. Did the reader open the cursor FOR READONLY? Because if it didn't, it's going to take update locks, and the readlock setting will be irrelevant. I learned that lesson the hard way, years ago, and it was sufficiently painful that it stuck with me. :-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |