| Summary: | Problem with saving changed java profiling options using PI agent | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kendric Wang <kendricw> | ||||
| Component: | TPTP | Assignee: | Jonathan West <jgwest> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | ewchan, jgwest, jkubasta, paulslau, samwai | ||||
| Version: | unspecified | Keywords: | plan | ||||
| Target Milestone: | --- | Flags: | ewchan:
review+
|
||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 196480 | ||||||
| Attachments: |
|
||||||
|
Description
Kendric Wang
Created attachment 83535 [details]
Patch to DataCollectorTreeContentProvider
The problem was a race condition in DataCollectorTreeContentProvider. The JobChangeListener was added to the Job _after_ the Job was scheduled to have started, so often the Job would complete before the listener was added. The listener caused the preferences page to be initialized, so in the failing case, the preferences page would never be initialized. I don't have the appropriate knowledge to review the patch since this is Eclipse UI related. Paul, can you review my patch when you have the chance? Thanks! Change is simple: Moved ExtendedDeferredContentManager to the end of the class file (w/ no modifications), and swapped the order of the "updateJob.schedule();" and "updateJob.addJobChangeListener(new JobChangeAdapter()..." statements in that class, so that the task is scheduled to run AFTER the job change listener is added. (In reply to comment #4) > Paul, can you review my patch when you have the chance? Thanks! I am going to delegate to Eugene who knows the code best. I have reviewed the patch and it looks safe to me to be checked in. Thanks Jonathan. Resolved by fix for defect 200533 Closing. |