Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 248753

Summary: mylyn kills workspace after adding large number of resources to the task context
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: mik.kersten, shawn.minto, steffen.pingel
Version: unspecified   
Target Milestone: 3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

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 .