Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 166271 - Shared .mylar data directory shouldn't shares the active context
Summary: Shared .mylar data directory shouldn't shares the active context
Status: RESOLVED DUPLICATE of bug 130658
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 17:08 EST by Joseph Marques CLA
Modified: 2006-12-05 23:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Marques CLA 2006-11-29 17:08:31 EST
I'm using a shared .mylar data directory, but I'd like to isolate the sharing to queries only.  In other words, I'm looking for the ability to have separate contexts for each workspace.  This way, they can all share the same task list, but they have individual context histories.

As it stands right now, when I close one Eclipse instance but leave one task active, my other workspaces - especially the ones that represent different projects, not just different lines of development on the same project - open with the same active task and "attempt" to re-open the context too, which won't work most of the time.

if I still need to share the context for some reason (maybe different lines of development haven't changed the packaging structure or the module layout), then I can still use the attach/retrieve context mechanism.
Comment 1 Eugene Kuleshov CLA 2006-11-29 17:18:51 EST
It is really sounds strange to me to have same tasks with different contexts. I'd use separate data folders if I'd need to keep contexts separate.
As of saving active task inside data directory, there maybe already issue for that (unless I forgot to fill it in).
Comment 2 Joseph Marques CLA 2006-11-29 17:36:24 EST
Well, OK, not seperate contexts for the same task, but at least a workspace-specific active task context.  This way, I can have multiple workspaces open without them colliding.  So, at least I got the summary/title right.  ; )
Comment 3 Eugene Kuleshov CLA 2006-11-29 18:36:58 EST
I don't think Mylar will handle situation when several Eclipse instances are writing into the same task store. You are in a great risk of loosing your task data. 

But I do agree that info about currently active task should be stored in workspace settings.
Comment 4 Joseph Marques CLA 2006-11-29 18:51:12 EST
Well, I haven't had any issues yet.  Maybe it's because I stagger the startup of each one, thus none of them ever collide and try to write to the store at the same time?  Regardless, if this could be an issue, perhaps something should be mentioned in the FAQ that it's strongly suggested to only use one Eclipse instance at a time when working with a shared data dir.
Comment 5 Eugene Kuleshov CLA 2006-11-29 19:03:34 EST
 (In reply to comment #4)
> Maybe it's because I stagger the startup of each one, thus none of them ever collide and try to write to the store at the same time?  

On every single change the whole context is written to disk, but as far as I know it is never read back. So, if two instances will be updating tasks at the same time I don't even want to think what exactly going to happen with those tasks.

Comment 6 Joseph Marques CLA 2006-11-29 19:27:51 EST
Hmm, I see what you're saying.  I guess I haven't seen any issues with the task list itself, but perhaps I should check how my old contexts are doing.
Comment 7 Mik Kersten CLA 2006-12-05 23:02:17 EST
We need to address this as part of the multiple-workspace support improvements.  Until then using a single data directory with multiple active workspaces is not recommended for the reasons discussed.

*** This bug has been marked as a duplicate of bug 130658 ***