Bug 93731

Summary: JDT core job still running after shutdown.
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2005-05-04 17:54:32 EDT
Build: N20050504

I recently added instrumentation to log the case where jobs are still running
after the runtime has finished shutdown.  From my log, I see such a case is
happening in this build:

!ENTRY org.eclipse.core.runtime 2 2 2005-05-03 17:40:54.861
!MESSAGE Job found still running after platform shutdown.  Jobs should be
canceled by the plugin that scheduled them during shutdown:
org.eclipse.jdt.internal.core.search.processing.JobManager$1$ProgressJob

Note that after org.eclipse.jdt.core has shutdown, it will not be possible to
load classes from that plugin.  Therefore you should cancel all jobs that you
created during your shutdown, and possibly also join() them if they are not very
responsive to cancelation.
Comment 1 Philipe Mulet CLA 2005-05-05 04:31:13 EDT
I believe we already do so. Somehow something must be getting wrong.
Comment 2 Jerome Lanneluc CLA 2005-05-19 06:10:43 EDT
Actually we didn't not join. John must have seen a job just before it finished
(at worse it would run for 500ms).

Changed JobManager to cancel and join on the progress job on shutdown.
Comment 3 David Audel CLA 2005-05-27 05:58:49 EDT
Verified in i20050527-0010