473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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:0x60e085e0 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.eventdate,
cbord.cbo4002p_itemevent.eventstatus,
cbord.cbo4002p_itemevent.unitid,
cbord.cbo4004p_eventlist.itembin_intid,
cbord.cbo4004p_eventlist.itemu
2004-11-11 10:33:57.77 spid4 Requested By:
2004-11-11 10:33:57.77 spid4 ResType:LockOwner Stype:'OR' Mode:
IS SPID:84 ECID:0 Ec:(0x4F9B3A00) Value:0x4a0e9400 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:0x4de9a8a0 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:LockOwner Stype:'OR' Mode:
IS SPID:88 ECID:0 Ec:(0x4F259A70) Value:0x60e085e0 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:0x4dc088a0 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.eventdate,
cbord.cbo4002p_itemevent.eventstatus,
cbord.cbo4002p_itemevent.unitid,
cbord.cbo4004p_eventlist.itembin_intid,
cbord.cbo4004p_eventlist.itemu
2004-11-11 10:33:57.77 spid4 Requested By:
2004-11-11 10:33:57.77 spid4 ResType:LockOwner Stype:'OR' Mode:
X SPID:121 ECID:0 Ec:(0x5F719A70) Value:0x48286aa0 Cost:(0/B9654)
2004-11-11 10:33:57.77 spid4 Victim Resource Owner:
2004-11-11 10:33:57.77 spid4 ResType:LockOwner Stype:'OR' Mode:
IS SPID:88 ECID:0 Ec:(0x4F259A70) Value:0x60e085e0 Cost:(0/0)
2004-11-11 10:34:02.77 spid4
Jul 20 '05 #1
1 2205
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****@sommarskog.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
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...
3
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...
4
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...
7
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...
9
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...
6
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...
0
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...
3
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.