This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 133951

Summary: Deadlock when expanding the MySQL node
Product: db Reporter: Petr Jiricka <pjiricka>
Component: CodeAssignee: David Vancouvering <davidvc>
Status: RESOLVED FIXED    
Severity: blocker Keywords: RANDOM
Priority: P2    
Version: 6.x   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump of the deadlock

Description Petr Jiricka 2008-04-25 16:19:30 UTC
I tried to expand the MySQL node, got deadlock.
Comment 1 Petr Jiricka 2008-04-25 16:20:40 UTC
Created attachment 60700 [details]
Thread dump of the deadlock
Comment 2 David Vancouvering 2008-04-25 21:44:18 UTC
I'm assuming this doesn't happen every time?  If it does, then this is a P1...
Comment 3 Andrei Badea 2008-04-28 10:26:13 UTC
Not a deadlock. It is caused by making a call into the driver while holding the lock on ServerInstance. Then the AWT
thread is blocked until the driver call returns.
Comment 4 Petr Jiricka 2008-04-28 12:47:17 UTC
No, this does not happen every time. I believe it happened when I tried to expand the MySQL node while it was still
checking the status (i.e. you have to do it very quickly after expanding the Databases node). This is not a P1.
Comment 5 David Vancouvering 2008-04-30 19:41:35 UTC
Petr, please verify, I was not able to reproduce, but using the thread dump I put in some changes that I think should
fix it.

http://hg.netbeans.org/main?cmd=changeset;node=072f3763e4db