mahsoud / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

Concurrent commits on the same session can cause conflicts to go undetected #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new session.
2. Check out the new session to two workdirs, workdir1 and workdir2.
3. Add some large files to workdir1 so that it will take a long time to commit.
4. Start committing the changes to workdir1.
5. Add some small files to workdir2 so that it will commit quickly.
6. Commit the changes to workdir2 before the workdir1 commit has completed.

What is the expected output? What do you see instead?

Both commits will succeed. The slow commit will be the last to finish, and will 
be the latest revision of the session, hiding the changes committed in workdir2.

The commit to workdir2 should fail with an error message "This session is 
currently being updated. Try again later." (Or, the commit could simply wait 
until the other commit is finished, but the likely result then will also be an 
error, "Your workdir is our of date. You need to update your workdir before you 
can commit")

Original issue reported on code.google.com by ekb...@gmail.com on 22 Mar 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Better summary

Original comment by ekb...@gmail.com on 24 Mar 2011 at 12:15

GoogleCodeExporter commented 9 years ago
Fixed in changeset 309:f7bdde3911cc.

Original comment by ekb...@gmail.com on 24 Mar 2011 at 10:42