[
https://jira.nuxeo.org/browse/NXP-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=76501#action_76501
]
Sun Tan commented on NXP-5132:
------------------------------
http://hg.nuxeo.org/nuxeo/nuxeo-services/rev/7070853ae0a7
First implementation of the lock service. A nuxeo service is available
(LockCoordinator) it provides the necessary lock mechanism to fill the
following scenario where 2 user/client/server that want to make a modification
on a resource try to lock it:
Coordinate two or more clients for operating on a resource.` Clients ask the
coordinator for a temporary lock on a resource. Coordinator let the winner
operating on the resource and block the others. If the winner do not return to
the coordinator in the delay he gave, one of the other takes the place and the
game is replayed.
Basic lock scenario: there is 2 competitors that want to get a lock. Winner is
getting the lock for a certain time and need to unlock before, Looser is
waiting (until the timeout is reached), winner unlocks, looser finally has lost
(AlreadyLockedException).
If winner had not unlocked after the timeout, the looser could had tryed to get
the lock and perform the process (then unlock)
See TestLockCoordinator
(/nuxeo-platform-lock-core/src/test/java/org/nuxeo/ecm/platform/lock/TestLockCoordinator.java
) and
/home/stan/hg/nuxeo/nuxeo-services/nuxeo-platform-lock-api/src/main/java/org/nuxeo/ecm/platform/lock/api/LockCoordinator.java
> lock should work accross cluster
> --------------------------------
>
> Key: NXP-5132
> URL: https://jira.nuxeo.org/browse/NXP-5132
> Project: Nuxeo Enterprise Platform
> Issue Type: Improvement
> Reporter: Alexandre Russel
> Assignee: Sun Tan
>
> we should be able to lock a document accross cluster:
> lockservice.lock(docref)
> lockservice.lock(docref,, timeout)
> Lock should be an object from which we should be able to know:
> - the locked document
> - the principal who locked
> - the server that locked
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets