Hi

One issue I am facing related to transaction

We have two folder "/docsIn" & "/policies/otherdocs"

When user submit a doc,  first insert into docsIn folder, then ML CPF start 
processing this file and convert it into xhtml and copies it into policies 
folder.

So, when ever User search his/her file it check in policies folder.


Now I have created a bat file with 4 search URLS, I run that bat and at the 
same I executed insert command. I am getting Deadlock detected message.

But I noticed, XHTML file got created successfully in docsIn folder but it is 
not available in polices folder, any idea


Sending Log also

One more thing I have also set directory creation ="manual", still facing this 
issue.





2013-05-15 13:44:19.664 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:44:19.732 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:44:19.776 Info: policyPortalQA-http-11000: [document.xqy] 
$manualTags:  <manualTags><group name="Frequently Asked Questions"/><group 
name="Document Glossary"/></manualTags>
2013-05-15 13:44:19.778 Info: policyPortalQA-http-11000: [document.xqy] search 
hits:  <searchHits/>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000: [querylog] - 
$searchquery:  <cts:or-query qtextjoin="OR" 
xmlns:cts="http://marklogic.com/cts";>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:   
<cts:element-value-query>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:     <cts:element 
xmlns:dc="http://morganstanley.com/firmwidePolicy";>dc:solutionId</cts:element>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:     <cts:text/>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:     
<cts:option>case-insensitive</cts:option>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:     
<cts:option>wildcarded</cts:option>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000:   
</cts:element-value-query>
2013-05-15 13:44:19.779 Info: policyPortalQA-http-11000: </cts:or-query>
2013-05-15 13:44:40.617 Info: TaskServer: [isDocumentXHTML.xqy] returning true 
for /docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.617 Info: TaskServer: addMetaToNonPolicyDoc.xqy
2013-05-15 13:44:40.617 Info: TaskServer: Entered addMetaToNonPolicyDoc.xqy: 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.619 Info: TaskServer: Exiting addMetaToNonPolicyDoc.xqy
2013-05-15 13:44:40.632 Info: TaskServer: [isDocumentXHTML.xqy] returning true 
for /docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.632 Info: TaskServer: fixImageURLs.xqy
2013-05-15 13:44:40.632 Info: TaskServer: Entered fixImageURLs.xqy: 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.635 Info: TaskServer: Exiting fixImageURLs.xqy
2013-05-15 13:44:40.646 Info: TaskServer: [isDocumentXHTML.xqy] returning true 
for /docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.646 Info: TaskServer: copyDocToPolicies.xqy
2013-05-15 13:44:40.646 Info: TaskServer: Entered copyDocToPolicies.xqy: 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:44:40.647 Info: TaskServer: Exiting copyDocToPolicies.xqy
2013-05-15 13:45:07.349 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:45:07.426 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:45:07.476 Info: policyPortalQA-http-11000: [document.xqy] 
$manualTags:  <manualTags><group name="Frequently Asked Questions"/><group 
name="Document Glossary"/></manualTags>
2013-05-15 13:45:07.478 Info: policyPortalQA-http-11000: [document.xqy] search 
hits:  <searchHits/>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000: [querylog] - 
$searchquery:  <cts:or-query qtextjoin="OR" 
xmlns:cts="http://marklogic.com/cts";>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:   
<cts:element-value-query>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:     <cts:element 
xmlns:dc="http://morganstanley.com/firmwidePolicy";>dc:solutionId</cts:element>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:     <cts:text/>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:     
<cts:option>case-insensitive</cts:option>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:     
<cts:option>wildcarded</cts:option>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000:   
</cts:element-value-query>
2013-05-15 13:45:07.479 Info: policyPortalQA-http-11000: </cts:or-query>
2013-05-15 13:46:05.918 Info: Saving 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21
2013-05-15 13:46:06.043 Debug: OnDiskStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21, disk=22MB, 
memory=16MB
2013-05-15 13:46:06.046 Info: Saved 22 MB in 1 sec at 171 MB/sec to 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21
2013-05-15 13:46:06.047 Debug: ~InMemoryStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21
2013-05-15 13:46:06.057 Info: Merging 24 MB from 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f20 and 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21 to 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f22
2013-05-15 13:46:06.698 Debug: OnDiskStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f22, disk=22MB, 
memory=1MB
2013-05-15 13:46:06.698 Info: Merged 22 MB in 1 sec at 34 MB/sec to 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f22
2013-05-15 13:46:06.705 Debug: ~OnDiskStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f20
2013-05-15 13:46:06.705 Debug: ~OnDiskStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21
2013-05-15 13:46:09.101 Info: Deleted 15 MB in 1 sec at 2900 MB/sec 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f20
2013-05-15 13:46:09.108 Info: Deleted 22 MB in 1 sec at 3170 MB/sec 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f21
2013-05-15 13:46:47.828 Info: policyPortalQA-http-11000: [g:showTree] - $q:  
1702270
2013-05-15 13:46:48.009 Debug: InMemoryStand 
/d/vi5tas01/d1/MarkLogic-Data/Forests/PolicyPortalQA2/00002f23, disk=15MB, 
memory=655MB, list=512MB, tree=128MB, rangeIndex=16MB, reverseIndex=16MB
2013-05-15 13:46:48.076 Info: TaskServer: returning false for 
/docsIn/1702270_meta.xml
2013-05-15 13:46:48.339 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1702270_meta.xml
2013-05-15 13:46:48.351 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1702270_meta.xml
2013-05-15 13:46:48.359 Info: TaskServer: [isDocumentXHTML.xqy] returning false 
for /docsIn/1702270_meta.xml
2013-05-15 13:46:49.331 Debug: Retrying xdmp:invoke 478901329782599985 Update 1 
because XDMP-DEADLOCK: Deadlock detected locking PolicyPortalQA2 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:46:49.407 Debug: Retrying xdmp:invoke 13759796204197228402 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking PolicyPortalQA2 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:46:49.623 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:46:49.640 Debug: Retrying xdmp:invoke 4462685998727307898 Update 
1 because XDMP-DEADLOCK: Deadlock detected locking PolicyPortalQA2 
/docsIn/1702270_pdf.xhtml
2013-05-15 13:46:49.650 Debug: TaskServer: policyPortalQA2: CPF 
check-transition caused skip of /docsIn/1702270_pdf.xhtml
2013-05-15 13:46:49.714 Info: policyPortalQA-http-11000: [s:buildQueryString] 
$params:  
<params><doc_uri>1702271</doc_uri><q/><anchor/><pn>1</pn><Mode>undefined</Mode><searchnewkey>1702270</searchnewkey><frequencyCounts>item-frequency</frequencyCounts></params>
  $queryStr:  DOCUMENT:"1702271"
2013-05-15 13:46:49.753 Info: policyPortalQA-http-11000: [document.xqy] 
$manualTags:  <manualTags><group name="Frequently Asked Questions"/><group 
name="Document Glossary"/></manualTags>
2013-05-15 13:46:49.755 Info: policyPortalQA-http-11000: [document.xqy] search 
hits:  <searchHits/>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000: [querylog] - 
$searchquery:  <cts:or-query qtextjoin="OR" 
xmlns:cts="http://marklogic.com/cts";>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:   
<cts:element-value-query>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:     <cts:element 
xmlns:dc="http://morganstanley.com/firmwidePolicy";>dc:solutionId</cts:element>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:     <cts:text/>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:     
<cts:option>case-insensitive</cts:option>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:     
<cts:option>wildcarded</cts:option>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000:   
</cts:element-value-query>
2013-05-15 13:46:49.756 Info: policyPortalQA-http-11000: </cts:or-query>
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000: XDMP-AS: 
(err:XPTY0004) let $doc as document-node() := fn:doc($docURI) -- Invalid 
coercion: () as document-node()
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000: in 
/modules/msSchemaToHTML.xqy, at 725:14,
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000: in 
cnvrt:tableOfContents(<params><doc_uri>1702270</doc_uri><q/><anchor>undefined</anchor><pn>unde...</params>)
 [1.0-ml]
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $params = 
<params><doc_uri>1702270</doc_uri><q/><anchor>undefined</anchor><pn>unde...</params>
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $docURI1 = ()
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $docURI = ()
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000: in 
/pages/pdfdocument.xqy, at 270:12 [1.0-ml]
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $params = 
<params><doc_uri>1702270</doc_uri><q/><anchor>undefined</anchor><pn>unde...</params>
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $params = 
<params><doc_uri>1702270</doc_uri><q/><anchor>undefined</anchor><pn>unde...</params>
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $menuBoxStyles = 
"margin-top: 10px; width: 100%;"
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $q = ()
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $searchText = 
"undefined"
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $r = ()
2013-05-15 13:47:11.160 Notice: policyPortalQA-http-11000:   $docURI1 = ()



________________________________

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