Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349555 - org.eclipse.scout.rt.server.scheduler.Scheduler synchronization Bug
Summary: org.eclipse.scout.rt.server.scheduler.Scheduler synchronization Bug
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 08:45 EDT by Reto Aschwanden CLA
Modified: 2021-08-19 11:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reto Aschwanden CLA 2011-06-16 08:45:32 EDT
Build Identifier: M20100211-1343

Scheduler.handleJobExecution starts a ServerJob which is scheduled and then runs asynchronously. But in the private class Scheduler.P_JobRunner where this method is called, it is expected to run synchronously (the finally clause does not make sense otherwise). The JavaDoc IScheduler.handleJobExecution also says that execution should be synchronous.

Fix: Add job.join() at the end of Scheduler.handleJobExecution    

Reproducible: Always
Comment 1 Ivan Motsch CLA 2011-06-16 08:55:33 EDT
I verified your solution. This is in fact a bug and is now solved exactly as you suggest.
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:40:14 EDT
shipped with scout 3.7.1