[U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Charles Stevenson
UV 10.2.10 on Windows is behaving differently from what I recall. Are my expectations out of line? Suppose Session A holds a readu lock; and Session B attempts a WRITE to same record withOUT!!! 1st explicitly getting the readu lock. Session B waits for Session A to release the lock before writi

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Dave Davis
READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behaving differently from what I recall. Are my expectations out of line? Suppose Session A holds a readu lock; and Session B attempts a WRITE to same record withOUT!!! 1st explicitly getting the

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Woodward, Bob
: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Monday, October 24, 2011 2:12 PM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behaving differen

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Mecki Foerthmann
.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Monday, October 24, 2011 2:12 PM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behaving differently from what

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Gregor Scott
- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Tuesday, 25 October 2011 8:12 AM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Wind

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Woodward, Bob
users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Mecki Foerthmann Sent: Monday, October 24, 2011 3:30 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. Now why would anybody want

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Paul Wilson
;t say I liked the idea -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Mecki Foerthmann Sent: Monday, October 24, 2011 3:30 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] LIST.READU EVERY's "waite

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Charles Stevenson
un...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Monday, October 24, 2011 2:12 PM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behavin

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Charles Stevenson
g.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Monday, October 24, 2011 2:12 PM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behaving differently from wha

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Charles Stevenson
enson Sent: Monday, October 24, 2011 5:12 PM To: U2 Users List Subject: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. UV 10.2.10 on Windows is behaving differently from what I recall. Are my expectations out of line? Suppose Session A holds a readu

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Charles Stevenson
the idea -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Mecki Foerthmann Sent: Monday, October 24, 2011 3:30 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" wh

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Wjhonson
WRITEU, too. Didn't say I liked the idea -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Mecki Foerthmann Sent: Monday, October 24, 2011 3:30 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] LI

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-24 Thread Paul Wilson
Why the 'deadly embrace' issue From: Wjhonson To: u2-users@listserver.u2ug.org; sfr192...@yahoo.com Sent: Monday, October 24, 2011 8:42 PM Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
s w/o explicit readu. Why the 'deadly embrace' issue From: Wjhonson To: u2-users@listserver.u2ug.org; sfr192...@yahoo.com Sent: Monday, October 24, 2011 8:42 PM Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Charles Stevenson
Yes. Today, deadly embraces can be avoided via LOCKED clauses. In days of yore, Pick's READU syntax did not allow a LOCKED clause. BTW, I advocate 2 Programming Standards: 1. If a lock is taken (READU, RECORDLOCKU, FILELOCK, etc.), a LOCKED clause must be present. 2. A lock must be se

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
Deadly Embraces cannot be avoided by use of a LOCKED clause. That's not what it means. -Original Message- From: Charles Stevenson To: U2 Users List Sent: Tue, Oct 25, 2011 6:29 am Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Sammartino, Richard
What if you were writing to an empty file? Rich - Original Message - From: "Mecki Foerthmann" To: u2-users@listserver.u2ug.org Sent: Monday, October 24, 2011 6:30:08 PM Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit read

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
This is deadly embrace http://knol.google.com/k/will-johnson/deadly-embrace-on-pick-systems/4hmquk6fx4gu/816#view The Locked clause does not save us from it. There is no known trivial solution to the problem, which troubles all multi-table, multi-user database environments. Perhaps we should

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Mecki Foerthmann
hat if you were writing to an empty file? Rich - Original Message - From: "Mecki Foerthmann" To: u2-users@listserver.u2ug.org Sent: Monday, October 24, 2011 6:30:08 PM Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. N

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Mecki Foerthmann
Oh yes there is a very easy solution. If you write a mass update process like in your example you skip the records with a lock and write them to an error log file. That way you never end up in a "deadly embrace". After you finished the mass update you can then check for skipped records and upda

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
s will let you know quite clearly with loud noises and waving of arms. -Original Message- From: Mecki Foerthmann To: u2-users Sent: Tue, Oct 25, 2011 10:58 am Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. Oh yes there i

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Mecki Foerthmann
- From: Mecki Foerthmann To: u2-users Sent: Tue, Oct 25, 2011 10:58 am Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. Oh yes there is a very easy solution. f you write a mass update process like in your example you skip the eco

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
I know I'll write a phantom to monitor the phantom and write an error log read by a third phantom! I'll be at the top of the matrix in six years! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-user

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Mecki Foerthmann
You could do it all in one program and run only one phantom, but of course you can make it a lot more difficult if you want too. KISS On 25/10/2011 20:13, Wjhonson wrote: I know I'll write a phantom to monitor the phantom and write an error log read by a third phantom! I'll be at the top of

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
ubject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. You could do it all in one program and run only one phantom, but of ourse you can make it a lot more difficult if you want too. ISS n 25/10/2011 20:13, Wjhonson wrote: I know I'll

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Charles Stevenson
On 10/24/2011 4:11 PM, Charles Stevenson wrote: --- [snip] --- I have not yet explored what the deadlock daemon does. Deadlock daemon ignores these WRITEs w/o explicit locking before hand. I ran these 2 pgms simultaneously so that they both tried to lock or write the lock that the other held.

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
n To: U2 Users List Sent: Tue, Oct 25, 2011 3:12 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. On 10/24/2011 4:11 PM, Charles Stevenson wrote: --- [snip] --- I have not yet explored what the deadlock daemon does. Deadlock daemon

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Charles Stevenson
But if there is explicit READUs in both processes, that one of them will fail in 20 minutes? -Original Message- From: Charles Stevenson To: U2 Users List Sent: Tue, Oct 25, 2011 3:12 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explic

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
nt: Tue, Oct 25, 2011 4:15 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. English is my 1st language, but that doesn't mean I'm good at it. et me try again. 1. If either (or both) of these have WRITEs without explicit rea

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Charles Stevenson
nation, but you can't avoid deadlocks with LOCKED clauses. Maybe what you meant was something like "You can try to think of some strategy to deal with them when they occur." -Original Message- From: Charles Stevenson To: U2 Users List Sent: Tue, Oct 25, 2011 4:15 pm Subje

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Charles Stevenson
While Will's articledoes give a good, clear example of a deadly embrace, and remediating faulty code is not trivial, the solution is conceptually trivial and it is exactly the LOCKED clause that saves us. If you write new code, deadlocks are easy to prevent. Testing is non-trivial. It generall

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
five minutes of typing without so much as a "by your leave" ? He is going to be very mad at you for that. -Original Message- From: Charles Stevenson To: U2 Users List Cc: Wjhonson Sent: Tue, Oct 25, 2011 5:21 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters&q

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-25 Thread Wjhonson
It is not possible to know in advance all the locks you may wish to set. That's the problem. -Original Message- From: Charles Stevenson To: U2 Users List Sent: Tue, Oct 25, 2011 5:22 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Mecki Foerthmann
ow in advance all the locks you may wish to set. That's the problem. -Original Message- From: Charles Stevenson To: U2 Users List Sent: Tue, Oct 25, 2011 5:22 pm Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. While Will&

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Robert Porter
Accountants... How about a ER doc waiting on lab results for cardiac enzymes? I can hear it now: "Sorry Doc, something else locked the record. Your patient's test request was skipped so we could implement a trivial solution that was suggested for deadly embrace. Try again, and hope for the best

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Mecki Foerthmann
Come on, get real. Do you suggest the "deadly embrace" would be better and he would get his results any quicker? And anyway, an ER doc not getting his lab results because of a mass update process running as a phantom encountering a locked record? And who would hold a lock on those lab results

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Robert Porter
I'm "suggesting" that blinding skipping records is a HORRIBLE idea, and in our case, potentially life threatening - literally. You need to get real with your suggestion that coding for deadly embrace situations is a "very easy solution" (your words). Not every phantom is a mass update. The IS r

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Mecki Foerthmann
I never said anything about blindly (I guess that's what you meant) skipping records. I suggested writing the locked record ids somewhere else and process them later for Wills not necessarily life-threatening sales rep update phantom. I at least don't feel threatened by accountants. If somebody

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-26 Thread Charles Stevenson
On 10/26/2011 7:45 AM, Robert Porter wrote: Accountants... How about a ER doc waiting on lab results for cardiac enzymes? I can hear it now: "Sorry Doc, something else locked the record. Your patient's test request was skipped so we could implement a trivial solution that was suggested for dead

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-29 Thread Charles Stevenson
I hate to bring it up after 50+ responses over 4 days, but . . . Did anyone ever actually run my little test? On something other than my UV10.2/Win? Unix? Before UV10.2? Knowing that would help me assess the size & age of our problem. I still think that in times past, a waiterfor a lockvia

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-30 Thread David Jordan
: Charles Stevenson Cc: U2 Users List Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. I hate to bring it up after 50+ responses over 4 days, but . . . Did anyone ever actually run my little test? On something other than my UV10.2/Win?

Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu.

2011-10-30 Thread Charles Stevenson
:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Sunday, 30 October 2011 10:22 AM To: Charles Stevenson Cc: U2 Users List Subject: Re: [U2] [UV] LIST.READU EVERY's "waiters" when there are writes w/o explicit readu. I hate to bring it up after 50+ respon