Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329335 - [Backport] Concurrent access to file while decorating
Summary: [Backport] Concurrent access to file while decorating
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.2+   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 327192
Blocks:
  Show dependency tree
 
Reported: 2010-11-03 07:57 EDT by Szymon Ptaszkiewicz CLA
Modified: 2010-11-16 14:43 EST (History)
6 users (show)

See Also:


Attachments
Patch (2.49 KB, patch)
2010-11-16 14:27 EST, Oleg Besedin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.