Community
Participate
Working Groups
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.
Created attachment 180399 [details] Stack for importing thread
Created attachment 180400 [details] Stack for decorating thread
Created attachment 180401 [details] Patch v.0.1
The patch looks good; applied to CVS Head. Szymon, thank you for taking time to figure out the problem and prepare the patch!
Verified that the code changes appear in the build I20101026-2000.
*** Bug 301223 has been marked as a duplicate of this bug. ***