473,662 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lost deadlocks

We've found deadlocks in the trace file that were not captured by our
Powerbuilder application. Some deadlocks are trapped or, at least,
reported to the user as a db error, and others are completely silent.
We've also seen evidence of strange data that would be explained by
unprocessed deadlocks, although we've not yet proven that the
unreported deadlocks are killing updates to the db.

Putting a raiserror into various parts of the same code (and code
review) appears to prove that we are error checking after each db
update. That is, it looks like we're checking, and a raiserror always
bubbles up to the app.

Can anyone shed some light on a.) How this could happen and b.) What
Should We Do?

Some of one of the traces below (with minor anotations.

Thanks

Deadlock encountered .... Printing deadlock information
2004-11-11 10:33:57.77 spid4
2004-11-11 10:33:57.77 spid4 Wait-for graph
2004-11-11 10:33:57.77 spid4
2004-11-11 10:33:57.77 spid4 Node:1
2004-11-11 10:33:57.77 spid4 TAB: 6:1739869265 (cbo1023p) []
CleanCnt:2 Mode: X Flags: 0x0
2004-11-11 10:33:57.77 spid4 Wait List:
2004-11-11 10:33:57.77 spid4 Owner:0x60e085e 0 Mode: IS
Flg:0x0 Ref:1 Life:00000000 SPID:88 ECID:0
2004-11-11 10:33:57.77 spid4 SPID: 88 ECID: 0 Statement Type:
SELECT Line #: 123
2004-11-11 10:33:57.77 spid4 Input Buf: Language Event: select
cbord.cbo1000p_ item.longname as itemname,
cbord.cbo4002p_ itemevent.event date,
cbord.cbo4002p_ itemevent.event status,
cbord.cbo4002p_ itemevent.uniti d,
cbord.cbo4004p_ eventlist.itemb in_intid,
cbord.cbo4004p_ eventlist.itemu
2004-11-11 10:33:57.77 spid4 Requested By:
2004-11-11 10:33:57.77 spid4 ResType:LockOwn er Stype:'OR' Mode:
IS SPID:84 ECID:0 Ec:(0x4F9B3A00) Value:0x4a0e940 0 Cost:(0/0)
2004-11-11 10:33:57.77 spid4
2004-11-11 10:33:57.77 spid4 Node:2
2004-11-11 10:33:57.77 spid4 TAB: 6:1739869265 (cbo1023p) []
CleanCnt:2 Mode: X Flags: 0x0
2004-11-11 10:33:57.77 spid4 Grant List 2::
2004-11-11 10:33:57.77 spid4 Owner:0x4de9a8a 0 Mode: X
Flg:0x0 Ref:742 Life:02000000 SPID:121 ECID:0
2004-11-11 10:33:57.77 spid4 SPID: 121 ECID: 0 Statement Type:
UPDATE Line #: 14
2004-11-11 10:33:57.77 spid4 Input Buf: RPC Event:
cbord.p_pur002_ replacecost;1
2004-11-11 10:33:57.77 spid4 Requested By:
2004-11-11 10:33:57.77 spid4 ResType:LockOwn er Stype:'OR' Mode:
IS SPID:88 ECID:0 Ec:(0x4F259A70) Value:0x60e085e 0 Cost:(0/0)
2004-11-11 10:33:57.77 spid4
2004-11-11 10:33:57.77 spid4 Node:3
2004-11-11 10:33:57.77 spid4 KEY: 6:2134298663 (cbo1000p_item) :1
(96006e2bf95f) CleanCnt:1 Mode: U Flags: 0x0
2004-11-11 10:33:57.77 spid4 Grant List 2::
2004-11-11 10:33:57.77 spid4 Grant List 3::
2004-11-11 10:33:57.77 spid4 Owner:0x4dc088a 0 Mode: S
Flg:0x0 Ref:1 Life:00000000 SPID:84 ECID:0
2004-11-11 10:33:57.77 spid4 SPID: 84 ECID: 0 Statement Type:
CONDITIONAL Line #: 63
2004-11-11 10:33:57.77 spid4 Input Buf: Language Event: select
cbord.cbo1000p_ item.longname as itemname,
cbord.cbo4002p_ itemevent.event date,
cbord.cbo4002p_ itemevent.event status,
cbord.cbo4002p_ itemevent.uniti d,
cbord.cbo4004p_ eventlist.itemb in_intid,
cbord.cbo4004p_ eventlist.itemu
2004-11-11 10:33:57.77 spid4 Requested By:
2004-11-11 10:33:57.77 spid4 ResType:LockOwn er Stype:'OR' Mode:
X SPID:121 ECID:0 Ec:(0x5F719A70) Value:0x48286aa 0 Cost:(0/B9654)
2004-11-11 10:33:57.77 spid4 Victim Resource Owner:
2004-11-11 10:33:57.77 spid4 ResType:LockOwn er Stype:'OR' Mode:
IS SPID:88 ECID:0 Ec:(0x4F259A70) Value:0x60e085e 0 Cost:(0/0)
2004-11-11 10:34:02.77 spid4
Jul 20 '05 #1
1 2220
Matt White (mj*@cbord.com) writes:
We've found deadlocks in the trace file that were not captured by our
Powerbuilder application. Some deadlocks are trapped or, at least,
reported to the user as a db error, and others are completely silent.
We've also seen evidence of strange data that would be explained by
unprocessed deadlocks, although we've not yet proven that the
unreported deadlocks are killing updates to the db.

Putting a raiserror into various parts of the same code (and code
review) appears to prove that we are error checking after each db
update. That is, it looks like we're checking, and a raiserror always
bubbles up to the app.

Can anyone shed some light on a.) How this could happen and b.) What
Should We Do?


It may be more of a PowerBuilder issue than an SQL Server issue.
PowerBuilder may be doing something "smart" with deadlocks. The
deadlocks may also come in a situation where PowerBuilder is not prepared
for them.

To tell a war story, we had problem with RDO in Visual Basic and SQL 6.5.
We had a customer who occasionally would get half-baked transactions,
and strangely only the latter part of it, but we could not figure out
why. Eventually another customer went live, and they had a lot more
deadlocks. Eventually we found that when you sent bare SQL statements to
SQL Server, RDO would generate temporary stored procedures for this, and
often the dropping of these procedures caused a deadlock that rolled
back the transaction. But RDO failed to raise an error to the VB code,
so we just jogged along merrily, now without a transaction.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
19121
by: AKS | last post by:
I am getting lot of deadlocks in my application. As it is very complex ti avoid deadlocks at this stage of application we have done few steps to lessen the impact. We have added retries after deadlock is capturted. We have added select * from TABLE with (nolock) wherever possible. But interestingly second step is not working. I have few simple select statements where i am using nolock criteria still I am getting deadlock victim error....
3
8296
by: Hasan | last post by:
Hi I'm having a problem with deadlocks in a table in SQL server when trying to update it through Biztalk 2004. There is no problem when I use the same Biztalk solution to update a similar dummy table, but when I try updating the original table in the production database, some transactions are updated successfully whereas others become the victim of the deadlock (Transaction (Process ID 185) was deadlocked on lock resources with another...
4
5641
by: T Dubya | last post by:
We're experiencing a large number of deadlocks since we began running SQL Server 2000 Enterprise Edition SP3 on a Dell 6650 with hyper threading intel processors. We don't have the same problem on Dell 6650's w/o the hyper threading. If I turn off the parallel query processing option the deadlocks stop. I've tried all of the suggestions from the Microsoft Knowledge Base under the following link - ...
7
2206
by: Marcus | last post by:
Hello all, I am trying to figure out when it is appropriate to use shared and exclusive locks with InnoDB. Using shared locks (lock in share mode), I can easily create a scenario with 2 clients that deadlocks - start 2 transactions, open 2 shared locks, and both try to insert a new row before either commits. Using exclusive locks (for update) I cannot come up with a scenario that results in a deadlock, since the very nature of the...
9
2424
by: Mike Carr | last post by:
I am running into an issue. Recently I installed IBuySpy Portal and then converted the data source to odp.net. When debugging the app my machine would freeze or become really slow. I can reproduce it by: Setting a breakpoint somewhere in the code, hitting F5, once the application has completely loaded hit the stop button, make a quick change and then select F5 again. It appears that the debugger attaches to the previous aspnet_wp.exe...
6
2492
by: Greg Stark | last post by:
There's another poster complaining about referential integrity checks causing deadlocks. Unfortunately I've deleted the message so this response (and the archives aren't responding) isn't going to show up on the right thread. The reason the deadlock is happening is because of a known deficiency in Postgres that postgres has to take an exclusive lock on the records to ensure they aren't deleted before your insert/update commits....
0
1789
by: PeterC | last post by:
We're getting numerous deadlocks in a multi-user system where users are coming in and updating their own data. In our troubleshooting/traces, the deadlocks seem to be coming from lock contention on a Primary Key Clustered Index, not on the table itself. Also, from what we can see, the application is requesting multiple locks on the Primary Key Index as it proceeds to perform the update on the primary table. Can anybody shed some light...
3
3899
by: bobdurie | last post by:
Hi, We have a Java application that runs against a variety of backends including Oracle and MSSql 2000 and 2005. Our application has a handful of active tables that are constantly being inserted into, and some of which are being selected from on a regular basis. We have a purge job to remove unneeded records that every hour "DELETE FROM <tableWHERE <datafield< <sometimestamp>". This is how we are purging because we need 100% up...
4
4215
by: John Rivers | last post by:
There are many references to deadlock handlers that retry the transaction automatically. But IMO a deadlock is the result of a design flaw that should be fixed. My applications treat deadlocks like any other runtime error - they are logged and fixed. There seems to be a an opinion that deadlocks are inevitable !
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.