| Summary: | Mylyn Task working sets cause loss of working set data on eclipse crash | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Carsten Reckord <reckord> | ||||||||
| Component: | Mylyn | Assignee: | Carsten Reckord <reckord> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | steffen.pingel | ||||||||
| Version: | 3.4 | Keywords: | greatbug | ||||||||
| Target Milestone: | 3.4.3 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 327396 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Carsten Reckord
Created attachment 180443 [details]
Fix for TaskWorkingSetUpdater triggering a save
This patch makes the TaskWorkingSetUpdater avoid an unnecessary save on the workingset model if it didn't change anything.
This seems to be working for the other implementations of IWorkingSetUpdater, althought theoretically, the problem could still occur if for some reason there were entries to be removed during startup.
Thanks for the great description and patch! This has been a long standing problem and we never got to the bottom of it. I'll merge this shortly. If understand correctly, it sounds like this is actually a problem in the platform and that saving of working sets during loading should be prevented or delayed to avoid saving partial state? Yes, that's right. Saving during load is pretty dangerous, because it is almost guaranteed to persist a partial state. Usually, no change should be made to a WorkingSet during load I guess, which is what my patch fixes for the task sets. But when that occurs, it would be good if the platform would handle that situation gracefully. One way to do that is to disable save during load and if there are save requests to save the whole model after loading. A more dirty solution would be to always trigger a save after the model was fully loaded... Created attachment 180554 [details]
additional change to avoid loading of working sets during shutdown
Created attachment 180555 [details]
mylyn/context/zip
Committed both patch to head and e_3_6_m_3_4_x branch. Thanks a lot for the fix, Carsten! |