Gurbeer,



The Debug messages in the logs are normal, and should not affect processing. 
The deadlock message means the server had two writes deadlock, so it backed one 
off and re-tried it automatically. It says "Update 1" so it did not get 
repeatedly re-started, which you would see if you had heavy lock contention.



I think the "check transition" message is similar. A race condition caused 
something to happen twice so it was ignored the second time CPF looked at it.



Does your process sometimes occur in the policies folder, or for some 
documents? Note that CPF is asynchronous, and will use all threads in the task 
server to do the processing, but for large tasks like multi-page PDF 
conversions, or many documents to process it can take a while. If there are 
errors in CPF processing, the place to look is in the properties fragments of 
the documents being processes, so look there.



Yours,
Damon



________________________________
From: [email protected] 
[[email protected]] on behalf of Singh, Gurbeer 
[[email protected]]
Sent: Monday, April 15, 2013 4:57 PM
To: [email protected]
Subject: [MarkLogic Dev General] Deadlock detected locking

Hi,

We are facing one issue with our file processing code.


Here is what I am doing

I submit a PDF for processing , at the same time , I am firing multiple search 
query on same ML instance. (Happening at the same time)

If I am doing like this, some time my file is not getting processed properly.
Processing file steps :
First create all file in docsIn folder then copy XHTML file to policies folder.


After successful submission , I can see all files created in docsIn folder but 
nothing available in polices folder.


let $query :=   cts:and-query((cts:directory-query("/docsIn/", "infinity")))
for $uri in cts:uris((), (), $query)
where fn:contains($uri,"1549670")
return $uri

/docsIn/1549670.pdf
/docsIn/1549670_meta.xml
/docsIn/1549670_pdf.xhtml
/docsIn/1549670_pdf_parts/01_00.jpg
/docsIn/1549670_pdf_parts/conv.css
/docsIn/1549670_pdf_parts/css.xml
/docsIn/1549670_pdf_parts/toc.xml

But if I run above query in policies folder  it return nothing


Log says

2013-04-15 15:27:25.883 Info: TaskServer: returning false for 
/docsIn/1549670_meta.xml
2013-04-15 15:27:25.890 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1549670_meta.xml
2013-04-15 15:27:25.896 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1549670_meta.xml
2013-04-15 15:27:25.902 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1549670_meta.xml
2013-04-15 15:27:27.703 Debug: Retrying xdmp:invoke 11629932152009600613 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
2013-04-15 15:27:27.713 Debug: Retrying xdmp:invoke 9258406684290035401 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
2013-04-15 15:27:27.842 Debug: Retrying xdmp:invoke 17093755488647700342 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
.
.
.
.
2013-04-15 15:27:31.909 Debug: Retrying xdmp:invoke 4667224806995682401 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
2013-04-15 15:27:31.971 Debug: Retrying xdmp:invoke 9115089284206181126 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
2013-04-15 15:27:32.017 Debug: Retrying xdmp:invoke 5836194818564849576 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking policyPortalUAT 
/docsIn/1549670_pdf.xhtml
2013-04-15 15:27:32.056 Debug: TaskServer: policyPortalUAT: CPF 
check-transition caused skip of /docsIn/1549670_pdf.xhtml


________________________________

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or 
views contained herein are not intended to be, and do not constitute, advice 
within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and 
Consumer Protection Act. If you have received this communication in error, 
please destroy all electronic and paper copies and notify the sender 
immediately. Mistransmission is not intended to waive confidentiality or 
privilege. Morgan Stanley reserves the right, to the extent permitted under 
applicable law, to monitor electronic communications. This message is subject 
to terms available at the following link: 
http://www.morganstanley.com/disclaimers If you cannot access these links, 
please notify us by reply message and we will send the contents to you. By 
messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to