Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Blocked on JobManager.join when using SubMonitor
Blocked on JobManager.join when using SubMonitor [message #1774561] Tue, 17 October 2017 09:31
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 636
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I encounter a very strange issue. I have some code trying to join on a specific family. If I provide a Monitor it is working, if I provide a SubMonitor, it stays blocked...

so for the code, this stays in the join:
SubMonitor subMonitor = SubMonitor.convert(monitor, jobFamilies.size());
for (Object jobFamily : jobFamilies) {
	Job.getJobManager().join(jobFamily, subMonitor.split(1));
}


and this is working:
for (Object jobFamily : jobFamilies) {
	Job.getJobManager().join(jobFamily, monitor);
}


I noticed that in JobManager it is looping in this while statement:
https://github.com/eclipse/eclipse.platform.runtime/blob/master/bundles/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/JobManager.java#L986
the synchronized "jobs" Set of running job still contains one Job but this job seems finished, I have no Thread for it.

Do you have any hints on what I should search for that can cause this behavior?

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:How does StatusManager find the correct StatusHandler to handle errors?
Next Topic:Eclipse Oxygen - Silent install?
Goto Forum:
  


Current Time: Sun Sep 23 20:00:58 GMT 2018

Powered by FUDForum. Page generated in 0.01843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top