[MarkLogic Dev General] xdmp:lock-acquire

Rajamani.Marimuthu at cognizant.com Rajamani.Marimuthu at cognizant.com
Fri Jul 3 01:22:17 PDT 2015


Hi Prasanth,

  You meant , same doc locked for two different users even time difference is there ?. Did u not get   XDMP-LOCKCONFLICT exception .  Could you explain more clearly with test code to give correct solution .


Thanks and regards
Raja >>>

From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Prasanth N V R
Sent: Tuesday, June 30, 2015 7:29 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] xdmp:lock-acquire

Hi,

We have doubt about xdmp:lock-acquire API

In my case I have multiple threads running in multiple servers and making xcc connection to ML and executing the adhoc query “xdmp:lock-acquire” to lock one particular file.

And each thread uses different userid/pwd for making xcc connections.

But at times we find ML giving empty sequence(which means successfully locked), when two Threads make xcc connection in milliseconds difference with respective userid/pwd to acquire lock.

Is xdmp:lock-acquire lock synchronized or is there any way to synchronize it in ML.

Thanks,
Prasanth

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150703/5fd1d2a9/attachment.html 


More information about the General mailing list