Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338886

Summary: Clean up method in pipelet
Product: z_Archived Reporter: nils.thieme
Component: SmilaAssignee: Project Inbox <smila.pipelets-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description nils.thieme CLA 2011-03-04 00:49:54 EST
If a pipelet uses external resources, for example a database connection, and the operation takes too long, so the whole pipline is aborted due to a timeout of the pipeline. The database connection isn't released. So it would be better if the pipelet has a clean up method to free the resources after the timeout. This method must be called after the timeout. But it must prevent a dead end meaning the clean up method can also take a long time (but shouldn't). So a new time for the clean up method would be necessary.
Comment 1 Juergen Schumacher CLA 2011-03-07 03:58:03 EST
Sounds sensible. However we would have to find a way to detect that the pipelet was aborted by a pipeline timeout and to notify a pipelet in an affected thread about it. I need to do some investigation about it ...