Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 170157 - [api] synchronization of operations on RepositoryTaskData
Summary: [api] synchronization of operations on RepositoryTaskData
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 00:45 EST by Steffen Pingel CLA
Modified: 2008-04-26 00:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2007-01-11 00:45:49 EST
Currently it is possible to submit a task in an editor, attach a context and synchronize it at the same time. To avoid concurrent modifications of RepositoryTaskData objects synchronization is needed. Rob suggested use a rule factory for tasks similar to IResourceRuleFactory that is used to synchronize operations of resources.

Related: bug 154258, bug 150682
Comment 1 Mik Kersten CLA 2007-01-21 21:07:39 EST
Steffen: if you want to take this on let me know.
Comment 2 Mik Kersten CLA 2007-06-25 02:20:55 EDT
Rob: is this still needed?
Comment 3 Robert Elves CLA 2007-06-25 13:11:16 EDT
Edits are orthogonal to task data so should be safe there and pushing to the cached offline storage is synchronized but I'd like to look at this more closely before closing.
Comment 4 Steffen Pingel CLA 2007-06-26 00:59:42 EDT
We need to review the API for concurrency issues at some point and potentially define ISchedulingRules for access to resources (queries, tasks, task data). Also methods in TaskList such as addTask() are not safe for concurrent access and we should to come up with a proper locking scheme here.
Comment 5 Steffen Pingel CLA 2008-04-26 00:20:27 EDT
This has been implemented as part of bug 226822. Operations on task data are now synchronized with the task list and managed in ITaskDataManager2. Further progress for defining scheduling rules is tracked on bug 226221.
Comment 6 Steffen Pingel CLA 2008-04-26 00:21:03 EDT
Task data is actually managed in TaskDataManager.