deadlock issue post migrations

Sam 1,476 Reputation points
2020-11-23T10:30:40.993+00:00

Hi All,

We are seeing this deadlock quite often after migrating from sql 2012 EE to sql 2017 RTM CU22.
Deadlock is happening on the same table on 2 different indexes. One spid is holding an 'X' lock and other spid is holding 'U' lock and both are requesting opposite locks.
Looking for some suggestions on fixin41787-deadlock1.jpg41788-deadlockgraph1.xmlg this deadlock. Will the index rebuild fix the deadlock?

Attaching the deadlock.xml file.

Regards,
Sam

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,842 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dirk Hondong 871 Reputation points
    2020-11-23T11:28:42.177+00:00

    Hi Sam,

    I don't think that an index rebuild will solve your problem permanently, e.g. it can occur again.
    The thing is: what processes are accessing the table, e.g. is it from an application, a SSIS package?
    Solving DL issues is often a combination of app design and database access / design.

    I have a similiar case with a deadlock during a ssis package run.
    Long story short: the data flow needs to be adjusted a bit because there's a multicast involved which is the "troublemaker".

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.