| Summary: | Deadlock in ModelManager due to unhandled exception | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Nick Sandonato <nsand.dev> | ||||||
| Component: | wst.sse | Assignee: | Nick Sandonato <nsand.dev> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | cameron.bateman, carlin.rogers, david_williams, raghunathan.srinivasan | ||||||
| Version: | 3.2 | Flags: | david_williams:
pmc_approved+
nsand.dev: pmc_approved? (raghunathan.srinivasan) nsand.dev: pmc_approved? (naci.dai) deboer: pmc_approved+ nsand.dev: pmc_approved? (neil.hauge) nsand.dev: pmc_approved? (kaloyan) thatnitind: review+ |
||||||
| Target Milestone: | 3.2.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | PMC_approved WI51940 | ||||||||
| Attachments: |
|
||||||||
|
Description
Nick Sandonato
Created attachment 173873 [details]
patch
Created attachment 173876 [details]
patch
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. Can cause deadlocks if the model ever fails to load due to an exception. * Is there a work-around? If so, why do you believe the work-around is insufficient? None. * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? The fix has been manually tested along with running existing unit tests. * Give a brief technical overview. Who has reviewed this fix? Because the exception was never handled, it let the model stay in a "loading" state. The next time the model was requested, it would block since someone else appears to be loading the model. This fix allows a finally block to perform cleanup on the model so that the model will finish its loading state and other threads will not block on it anymore. What is the risk associated with this fix? Minimal. It's just some extra guarding around an error case. We have had numerous issues in this area and would like to review this change. This looks like an appropriate fix to me, so marking as +1. I'm not sure ... Raghu, I assume your comment means you want to review it further before it goes into a build? (Not sure if it'll help your deadlock cases, per se, since you've not reported 'exceptions' happening ... but, would be interesting, important if it did!) Please go ahead with the change. We will re-visit this for 3.2.2. Released changes to Maintenance and HEAD. Thanks. |