Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project sharing completely broken in case of cancellation #34

Open
dpp-gerrit opened this issue Jul 17, 2012 · 3 comments
Open

Project sharing completely broken in case of cancellation #34

dpp-gerrit opened this issue Jul 17, 2012 · 3 comments
Labels
Aspect: Consistency Issue with Saros' consistency handling

Comments

@dpp-gerrit
Copy link

This is the simplest scenario.

Share one project, do not cancel anything.

Now let the fun begin, try to add more projects, choose a side that should cancel the operation (it does not matter which side).

The side which started the project exchange will always has marked the project as shared, the other side will not.
You will be unable to share that project again, because you can't.

Think further:

A shares project X with B and C.

B finished successfully but C cancels the operation (for what reason ever).

C must leave the session to be able to obtain project X again.

ETC. PP.

Reported by: kargor

Original Ticket: dpp/bugs/759

@dpp-gerrit
Copy link
Author

The problem is on project sharing step.
To my understanding so far sharing project is through CollaborationUtils.addResourcesToSarosSession() which calls SarosSessionManager.addResourcesToSession(). In the latter method the sharing step is being done by adding the project to the session first and schedule OutgoingProjectNegotiation to all remote users of the session. The negotiations ignore the result as OutgoingProjectJob.run() always return OK.

Before move further, how to determine shared projects on more than two participants? Are projects considered shared if all the participants don't cancel the process? That means A, B, C must not cancel the process. If one of them cancel the process, the project is considered not shared.

Original comment by: jetzer

@dpp-gerrit
Copy link
Author

We always assume that the project sharing was successful. Normally we have to keep track who is currently collaborating on which project but we are missing such an option.

Original comment by: kargor

@dpp-gerrit
Copy link
Author

So, to fix this bug we cannot assume project sharing always successful.

Tracking project-collaborators means collaborators of one session can collaborate on different projects. Let's say A, B, C is in one session with project X shared. Then A and B can share project Y and B and C can share project Z, all in one session. I think this will bring more synchronization problems and it will be easier if one session only defines which projects all users collaborating on.

Original comment by: jetzer

@dpp-gerrit dpp-gerrit added Aspect: Consistency Issue with Saros' consistency handling sourceforge labels Mar 27, 2018
@dpp-gerrit dpp-gerrit self-assigned this Mar 27, 2018
@dpp-gerrit dpp-gerrit removed their assignment Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Consistency Issue with Saros' consistency handling
Projects
None yet
Development

No branches or pull requests

2 participants