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 121415 - Persistence unit closure and opening should be synchronized properly
Summary: Persistence unit closure and opening should be synchronized properly
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on: 127727 120996
Blocks:
  Show dependency tree
 
Reported: 2007-11-07 19:55 UTC by Vladimir Kvashin
Modified: 2008-04-01 09:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2007-11-07 19:55:17 UTC
Now when units are open implicitly, this is not synchronized well enough.
Therefore there is a possibility of implicit unit opening
o.n.m.c.repository.impl.DelegateRepository synchronizes explicit opening.
o.n.m.c.repository.disk.DiskRepositoryManager opens a unit implicitely.
This is not synchronized - there is a possibility that the project is being closed in another thread, which would lead
to exceptions.
Comment 1 Vladimir Kvashin 2007-11-07 19:58:35 UTC
It seems that the particular consequences are recently fixed.
That's why I leave it P3.

Comment 2 Jesse Grodnik 2007-12-19 23:06:52 UTC
To the extent that timing/synchronization problems still exist then the underlying issue needs to be fixed. Otherwsie
this defect should be closed. I'm escalating to P2 pending that determination and/or code change.
Comment 3 Vladimir Kvashin 2008-03-27 23:32:03 UTC
Fixed:
http://hg.netbeans.org/main/rev/45ff317b9a66