Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329335

Summary: [Backport] Concurrent access to file while decorating
Product: [Eclipse Project] Platform Reporter: Szymon Ptaszkiewicz <sptaszkiewicz>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, ob1.eclipse, pwebster, remy.suen, Szymon.Brandys, tomasz.zarna
Version: 3.7   
Target Milestone: 3.4.2+   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 327192    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Szymon Ptaszkiewicz CLA 2010-11-03 07:57:48 EDT
Bug cloned to track potential release into 3.4.x maintenance branch.

+++ This bug was initially created as a clone of Bug #327192 +++

The issue came out while working on bug 301223. The problem is that during project set import decorating thread and importing thread are both trying to use the same file. Decorating thread is calling file.getContentDescription() and importing thread is trying to delete this file to make space for incoming file from repository. The file is open because of decorator so delete operation is not successful which results in error during import. Delete operation uses scheduling rule but decorator is not. There should be added simple scheduling rule to decorate operation to prevent concurrent access and error during import.
Comment 1 Boris Bokowski CLA 2010-11-15 17:05:52 EST
+1 for 3.4.2+
Comment 2 Oleg Besedin CLA 2010-11-16 14:27:18 EST
Created attachment 183260 [details]
Patch

Updated original patch to work with 3.4.2 version. Incremented bundle version fom 3.4.2 to 3.4.3.
Comment 3 Oleg Besedin CLA 2010-11-16 14:43:39 EST
Patch applied to the "R3_4_maintenance" branch.