Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock manager reported false deadlocks under high load [CORE2000] #2437

Closed
firebird-issue-importer opened this issue Jul 17, 2008 · 10 comments
Closed

Comments

@firebird-issue-importer

Submitted by: @hvlad

Block progress on CORE1970
Block progress on CORE2611
Relate to CORE2640

Commits: 71ac38a 5ec0e6a c1b161f

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 17, 2008

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 17, 2008

Modified by: @hvlad

Link: This issue block progress on CORE1970 [ CORE1970 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 17, 2008

Commented by: @hvlad

Below is typical picture at false deadlock detection time

a) Owners, participating in deadlock (backtrace, head of chain marked by 0) :
1 deadlock chain: OWNER BLOCK 377540 Process id: 2968 Flags: 0x04
2 deadlock chain: OWNER BLOCK 396488 Process id: 2748 Flags: 0x04
1 deadlock chain: OWNER BLOCK 377540 Process id: 2968 Flags: 0x04
0 deadlock chain: OWNER BLOCK 401656 Process id: 3024 Flags: 0x04

b) Two locks on which owners are waiting :

LOCK BLOCK 948936
Series: 3, Parent: 346628, State: 6, size: 8 length: 8 data: 0
Key: 0001:009782, Flags: 0x00, Pending request count: 5
Hash que (3): forward: 1006312, backward: 366144
Requests (6): forward: 1375776, backward: 1109580
2 Request 1375776, Owner: 396488, State: 6 (6), Flags: 0x00

	Request 876536, Owner: 532236, State: 0 \(6\), Flags: 0x02
	Request 1117016, Owner: 677976, State: 0 \(6\), Flags: 0x02
	Request 1400188, Owner: 544104, State: 0 \(6\), Flags: 0x02

1 Request 1366912, Owner: 377540, State: 0 (6), Flags: 0x22
Request 1109580, Owner: 508804, State: 0 (6), Flags: 0x02

LOCK BLOCK 364744
Series: 3, Parent: 346628, State: 3, size: 8 length: 8 data: 0
Key: 0001:007839, Flags: 0x00, Pending request count: 4
Hash que (5): forward: 998428, backward: 6564
Requests (9): forward: 1409704, backward: 1230128
1 Request 1409704, Owner: 377540, State: 3 (3), Flags: 0x100
Request 1391660, Owner: 532236, State: 3 (3), Flags: 0x100
Request 1175112, Owner: 677976, State: 3 (3), Flags: 0x100
Request 1339992, Owner: 544104, State: 3 (3), Flags: 0x100
Request 875028, Owner: 508804, State: 3 (3), Flags: 0x100

	Request 1403776, Owner: 588040, State: 0 \(6\), Flags: 0x02
	Request 1399668, Owner: 486280, State: 0 \(3\), Flags: 0x02
	Request 1114520, Owner: 627348, State: 0 \(6\), Flags: 0x02

2 Request 1230128, Owner: 396488, State: 0 (6), Flags: 0x22

As you may see request 1375776 (of owner 396488) just granted a lock 948936. This request blocked some other requests, one of them by owner 377540. Note, request 1375776 have flags 0, i.e. it was not marked as blocking and not seen blocking notification. Therefore it have no chance to release the lock to break circle in wait-for graph.

LOCK\post_pending() routine wake up owner of first blocked request. If another process run deadlock scan before blocked owner awakens (and calls post_blockage) it reports false deadlock.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 17, 2008

Modified by: @hvlad

Fix Version: 2.5 Beta 1 [ 10251 ]

Fix Version: 2.0.5 [ 10222 ]

Fix Version: 2.1.2 [ 10270 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 4, 2008

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 26, 2009

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 31, 2009

Modified by: Andreas Steibl (snoopy_spy)

Link: This issue block progress on CORE2611 [ CORE2611 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 25, 2009

Modified by: @dyemanov

Link: This issue relate to CORE2640 [ CORE2640 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Aug 7, 2016

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment