| Summary: | Order mismatch when saving/restoring workspace trees | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Baltasar Belyavsky <bbelyavsky> | ||||||||||
| Component: | Resources | Assignee: | James Blackburn <jamesblackburn+eclipse> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | major | ||||||||||||
| Priority: | P3 | CC: | adrian.ashley, jamesblackburn+eclipse, marcin.swiezawski, pmason, Szymon.Brandys, yevshif | ||||||||||
| Version: | 3.7.1 | Flags: | Szymon.Brandys:
review?
(Szymon.Brandys) |
||||||||||
| Target Milestone: | 3.8 M5 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | Juno candidate | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 368085 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Baltasar Belyavsky
Created attachment 205739 [details]
Patch generated with EGit - applies to latest 3.8 stream
Created attachment 205752 [details]
Updated patch - applies to latest 3.8 stream
Uploading an updated patch - same content, but this one can be applied to workspace using the Apply Patch action.
Didn't realize that v3.7.x stream is still active. It would be great if this patch makes it into v3.7.2. The same patch applies to the tip of 3.7 branch. Created attachment 206154 [details]
Updated patch - apply to workspace
Found one more problem with the persist/restore ordering. Updated patch is attached.
Created attachment 206555 [details]
Testcase to illustrate the bug, and regression-test the fix
Attaching a patch containing the testcase that can be used to regression-test the fix. The same testcase also illustrates the bug described (if run before applying the fix patch).
James, could you look at the Baltasar work? Looks like a very good catch to me. AFAICS fix and test looks good. Szymon, my new employer hasn't signed the committer paperwork yet, can you push this in? BTW as for the origin of this bug, we went through a few iterations of the metadata before arriving at something that was backwards and forwards compatible with the single config workspace layout. Somehow in that process we clearly messed up the linkage between builders and their trees :s. When looking at this code I can't help but think it could be made simpler... Hi Szymon, As James has reviewed the patch and the test-case, but isn't able to commit it himself, would you be able to commit it for us? Into 3.7.2 and up, preferably? Thanks for the patch and test Baltasar. Committed to master. Bug 368085 created for the backport. |