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 186427

Summary: waitIOLoad while holding NamingFactory locks
Product: platform Reporter: Alexandr Scherbatiy <sunflower>
Component: FilesystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: anebuzelsky, mmirilovic, tzezula
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread Dump

Description Alexandr Scherbatiy 2010-05-20 10:12:55 UTC
NB 6.9 RC1 netbeans-6.9rc1-201005191833-windows.exe 

  Product Version         = NetBeans IDE Dev (Build 201005191833) (#79fe8b3b0b9d)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


I created a Java project, run it and run it the second time.
The IDE hanged. See the attached thread dump.
Comment 1 Alexandr Scherbatiy 2010-05-20 10:13:32 UTC
Created attachment 99241 [details]
Thread Dump
Comment 2 Adam Sotona 2010-05-20 11:25:19 UTC
I don't see any deadlock, just "Refresh-After-WindowActivated" is waiting for some IO and blocking the rest.
Reassigning to MasterFS
Comment 3 Jaroslav Tulach 2010-05-24 11:54:47 UTC
- locked <0x2ad91fc8> (a java.lang.Class for org.netbeans.modules.masterfs.filebasedfs.naming.NamingFactory)
- locked <0x12a826b0> (a java.util.Collections$SynchronizedMap)
Comment 4 Jaroslav Tulach 2010-05-24 14:41:32 UTC
changeset:   6c2c60fac860
parent:      4e52836d327b
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Mon May 24 16:37:01 2010 +0200
summary:     #186427: Don't wait for I/O when synchronized on NamingFactory


Fixed. Tomáši, can you please review the change for possible regressions? Tondo, can you (if Tomáš founds the change OK), put it into release69 clone?
Comment 5 Tomas Zezula 2010-05-24 14:54:07 UTC
The patch seems good to me.
Thanks Jardo
Comment 6 Antonin Nebuzelsky 2010-05-24 15:09:45 UTC
Marian, do you want to have this fix in RC1 today, or wait for tomorrow so that it can be tested well enough internally before it appears in RC2?
Comment 7 Antonin Nebuzelsky 2010-05-24 18:54:45 UTC
The fix is reviewed and is a simple change. Let's have the fix in RC1 rather than later, even without QA confirmation.

Backported to release69 to have the fix in tonight's RC1 build.
Comment 8 Quality Engineering 2010-05-25 07:31:44 UTC
Integrated into 'main-golden', will be available in build *201005250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6c2c60fac860
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #186427: Don't wait for I/O when synchronized on NamingFactory