Bug 93731 - JDT core job still running after shutdown.
Summary: JDT core job still running after shutdown.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 17:54 EDT by John Arthorne CLA
Modified: 2005-05-27 05:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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