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: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


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:
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?


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: Thu Feb 29 23:03:24 GMT 2024

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

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

Back to the top