Bug 31990

Summary: Working copy operations should not take workspace lock
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2003-02-17 05:55:34 EST
Build 20030214

The new working copy operations (CreateSharedWorkingCopyOperation, 
RemoveSharedWorkingCopyOperation and ReconcileWorkingCopyOperation) should be 
marked as read-only so as to not take the workspace lock when run.
Comment 1 Jerome Lanneluc CLA 2003-02-17 06:02:44 EST
This causes deadlocks (see bug 31891)
Comment 2 Jerome Lanneluc CLA 2003-02-17 06:34:36 EST
Marked those 3 operation read-only (isReadOnly() returns true)
Comment 3 Philipe Mulet CLA 2003-02-17 06:37:13 EST
Dirk - the workaround you used by creating a JavaModel runnable is internally 
still taking the lock (due to platform bug 29624), indeed it has to eagerly 
states it is modifying resources, and thus check in for later resource 
modification. Since platform is planning to fix this defect by RC1, we could 
change this too.
Comment 4 Philipe Mulet CLA 2003-02-17 06:37:37 EST
Forgot to assign
Comment 5 Philipe Mulet CLA 2003-02-17 06:37:57 EST
Fixed
Comment 6 Jerome Lanneluc CLA 2003-02-17 06:43:30 EST
Fixed
Comment 7 David Audel CLA 2003-03-11 09:06:23 EST
Verified.