Blocked on JobManager.join when using SubMonitor [message #1774561] |
Tue, 17 October 2017 09:31 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds