Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338886 - Clean up method in pipelet
Summary: Clean up method in pipelet
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Smila (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 00:49 EST by nils.thieme CLA
Modified: 2022-07-07 11:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ...