Bug 535878 - [TMF] Early cancelled analysis can hang or fail after restart
Summary: [TMF] Early cancelled analysis can hang or fail after restart
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: TMF (show other bugs)
Version: 3.3.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-13 17:36 EDT by Patrick Tasse CLA
Modified: 2018-06-13 17:44 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 Patrick Tasse CLA 2018-06-13 17:36:15 EDT
If an analysis is cancelled before its Job has started running, the Job may never execute at all.

In the case of a TmfStateSystemAnalysisModule, the initialization countdown latch can then never be counted down, and any thread that was waiting on it with method waitForInitialization() will wait forever.

Also, if the Job does not execute, resetAnalysis() may never be called and then the finished countdown latch will not be restarted. For a TmfStateSystemAnalysisModule, the method should restart the initialization latch to ensure that callers of waitForInitialization() will never get a stale return result (the cancelled execution's initialization result).
Comment 1 Eclipse Genie CLA 2018-06-13 17:44:02 EDT
New Gerrit change created: https://git.eclipse.org/r/124500