This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 248753 - mylyn kills workspace after adding large number of resources to the task context
Summary: mylyn kills workspace after adding large number of resources to the task context
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: 3.1   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 13:24 EDT by Eugene Kuleshov CLA
Modified: 2009-01-17 20:44 EST (History)
3 users (show)

See Also:


Attachments
mylyn/context/zip (12.35 KB, application/octet-stream)
2008-10-06 22:26 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kuleshov CLA 2008-09-26 13:24:52 EDT
I've been working with some active task and been writing code that generates lots of code (about 20000 new resources) within resources of some project in Eclipse workspace. To bring those resources into Eclipse I hit refresh and after that Eclipse died (somewhere in Mylyn code bouncing back and forth around adding new resources to its models). The worst part is that after killing Eclipse and restarting things things start over (because task activated automatically on startup) and it look like I will have to drop this Workspace and start over from scratch. So, data loss, hence a blocker severity of this issue.

Perhaps the simplest fix for that would be to not activate task on startup (that is easy enough to do that from task history) or provide preference for that.
Comment 1 Steffen Pingel CLA 2008-10-06 22:25:50 EDT
I don't think it's necessary to add a preference for automatic task reactivation. The described performance problem sounds very similar to a bug in the resource listener that has been fixed in the latest weekly build: https://bugs.eclipse.org/bugs/show_bug.cgi?id=245234#c14 . 

Usually it should not be necessary to disable automatic task activation but it can still be difficult to recover when this triggers another problem, e.g. opening a problematic editor or processing a broken context. To address that I have added a system property to disable task activation on startup: http://wiki.eclipse.org/Mylyn/User_Guide#System_Properties .

I would prefer to couple this to the workspace state instead of using a property though. Task reactivation should be disabled if the workspace did not shutdown cleanly. Any idea how it is possible to detect that?
Comment 2 Steffen Pingel CLA 2008-10-06 22:26:15 EDT
Created attachment 114367 [details]
mylyn/context/zip
Comment 3 Eugene Kuleshov CLA 2008-10-06 22:49:40 EDT
Personally I believe it is a bad idea to require user to specify system properties. They introduce global state and not exactly convenient to work with in RCP applications, such as Eclipse.
Comment 4 Steffen Pingel CLA 2008-10-16 03:03:33 EDT
As per discussion on the last conference call: The system property will be replaced by a command line option, e.g. "-no-activate-task".
Comment 5 Steffen Pingel CLA 2009-01-17 20:44:13 EST
The command line argument will be available in the next weekly build: http://wiki.eclipse.org/Mylyn/User_Guide#Command_Line .