Questions tagged [deadlock-graph]
The deadlock-graph tag has no usage guidance.
22
questions
1
vote
0
answers
82
views
Same update on different rows results in deadlocking
We are testing our SQL Server database for concurrency issues and it appears that a single, simple update statement being run concurrently in transactions is resulting in deadlocks.
Here is the ...
0
votes
0
answers
65
views
How to get the full query involved in a deadlock?
I have the following deadlock graph:
The problem is that when I look into the queries involved, they seem to be two select statements that shouldn't be getting exclusive locks.
After reading this ...
1
vote
1
answer
393
views
Why my clustered index causing deadlock (Keylocks and Pagelocks)
We are experiencing deadlock 2-3 times a day in SQL Server. Upon analysis, we have found that the deadlock is caused by a combination of keylock and pagelock occurring simultaneously.
We are actually ...
1
vote
1
answer
72
views
Why is my non clustered index causing this deadlock?
I have an application that runs the following query in multiple parallel threads:
update Table1 SET Col1 = 'Some value' WHERE Order_ID = @orderID
Order_ID is NOT the primary key on this table, but ...
1
vote
0
answers
188
views
What is the object involved in an Object Lock in SQL Server Profiler's Deadlock graph? [closed]
In searching documentation online, I have found that there can be row, page, or table locks. However, I ran a SQL Server Profiler trace and noticed both a Page Lock and an Object lock. I can easily ...
0
votes
1
answer
294
views
Deadlock on Non Clustered Index
<deadlock>
<victim-list>
<victimProcess id="process1e4222068c8" />
</victim-list>
<process-list>
<process id=&...
2
votes
1
answer
134
views
How to resolve linenumber in deadlock graph XML to line number displayed in SSMS sproc definition?
Captured the XML graph for a given deadlock involving some large / multi query sp's. However, not really sure how to interpret the line, stmtstart, stmtend of the frame element to determine which ...
3
votes
1
answer
463
views
Deadlock on DELETE - DELETE for parallel execution of same stored procedure
I have a stored procedure which ran parallely by two processes.
Code for sp :
DECLARE @inputXML XML
DECLARE @tempTable TABLE (afid INT, ccid INT)
INSERT INTO @tempTable
SELECT ref.value('@afid', '...
1
vote
2
answers
844
views
SQL Server - Exclusive lock taken by a SELECT statement - Why?
I'm trying to make sense of why SQL Server (2014) is placing an eXclusive key lock during a deadlock scenario. I've pasted the entire deadlock graph below.
I'm confused because the deadlock is ...
-1
votes
2
answers
149
views
What does the process shown in the deadlock graph represent?
I have a windows application that is used by multiple users, often there are deadlocks in the database related to lock resources.
Looking at the deadlock graph I see 2 processes and 2 resources, ...
0
votes
1
answer
551
views
How to capture the exact SQL text involved in deadlock (locks) using extended events?
I have setup extended event session with the following event:
xml_deadlock_report
When I look at the deadlock graph, it shows me the processes asking or requesting for the resource, and the type of ...
0
votes
1
answer
455
views
What would cause this SQL Server deadlock?
I have a node.js script that is attempting to geocode records in a table. The script selects 100 records at a time that do not have lat/log data, geocodes them using a third party api and writes the ...
0
votes
0
answers
169
views
Help on understanding deadlock
A deadlock issue is encountered when adding column to an existing table, from my attempt to understand the graph, a linked server calling sp_columns_100_rowset is having an update lock on sysschobjs, ...
2
votes
0
answers
211
views
Unhandled Deadlocks with SQL Server 2017 [closed]
We’re running into issues with unresolved deadlocks on the most recent version of SQL-Server 2017, has anybody seen a problem like this before?
Detailed explanation: We migrated our database from ...
1
vote
1
answer
57
views
Deadlock Detection | Should the node T4 point to T1 and T2? [closed]
This example regarding deadlock detection was shown during one of my lectures and I have a doubt about it. The image is shown below.
For deadlock detection mechanism, why does T4 point only to T2 and ...
4
votes
1
answer
3k
views
What does exchangevent indicate in SQL deadlock graph?
Have a deadlock XDL file with several exchange events listed. Not sure if these are good or bad or what causes them. What causes exchange events in SQL deadlock graph?
<exchangeEvent id="...
1
vote
1
answer
107
views
Purging SP getting deadlocked with App...Not able to completed understand Deadlock Graph
We have a stored procedure which purges old data. On a regular basis, it is getting deadlocked with an application stored procedure. Below is the deadlock graph:
Deadlock XML:
<deadlock> <...
2
votes
1
answer
494
views
Postgres 9.5 deadlock with many updates on a table + many "select for update" on another table
I have two tables: "machines" and "magictools". "magictools" refers to "machines" with a foreign key.
I face a deadlock problem while executing many of these ...
1
vote
1
answer
321
views
Why is a Shared lock blocking on an IX lock when Read Committed Snapshot is enabled?
Our system has randomly started deadlocking in areas where it previously had not, and an analysis of the deadlock graph looks like it should not even be happening to begin with. Here is a screenshot ...
6
votes
1
answer
3k
views
SQL Server Deadlock between two selects and one update on one table
Our application encounters a deadlock every now and again (about once a week).
The main culprit seems to be a query with two selects. One of them is to fill a temp table for performance reasons, the ...
0
votes
1
answer
100
views
Unusual deadlock occuring
I have spent a few days trying to debug a deadlock that occurs in production. This is one I didn't understand however.
Below is pseudo code for the stored procedure. The stored procedure generates a ...
6
votes
1
answer
620
views
Deadlock Graph - Surviving Statement inputbuf does not show the object that was locked
I have captured a deadlock on my system and the (anonymised) XML output is as follows:
<deadlock>
<victim-list>
<victimProcess id="processf4d9233468" />
</victim-...