Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329334 - [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.5.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.5.2+   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Oleg Besedin CLA
URL:
Whiteboard:
Keywords:
Depends on: 327192
Blocks:
  Show dependency tree
 
Reported: 2010-11-03 07:56 EDT by Szymon Ptaszkiewicz CLA
Modified: 2010-11-16 15:54 EST (History)
6 users (show)

See Also:


Attachments
Patch v.0.1 (1.84 KB, patch)
2010-11-03 12:04 EDT, Szymon Ptaszkiewicz 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:56:13 EDT
Bug cloned to track potential release into 3.5.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 Szymon Ptaszkiewicz CLA 2010-11-03 12:04:34 EDT
Created attachment 182306 [details]
Patch v.0.1
Comment 2 Boris Bokowski CLA 2010-11-15 17:05:16 EST
+1 for 3.5.2
Comment 3 Boris Bokowski CLA 2010-11-15 17:05:40 EST
I meant +1 for 3.5.2+ :-)
Comment 4 Oleg Besedin CLA 2010-11-16 15:54:54 EST
Patch applied to the "R3_5_maintenance" branch. I also incremented bundle version from 3.5.2 to 3.5.3. The bundle is tagged and UI map file is updated.