[MarkLogic Dev General] xdmp:document-delete() queries hanging
Pete Aven
Pete.Aven at marklogic.com
Wed Jul 2 10:03:45 PDT 2008
Try running xdmp:document-properties() on the document to check its
current state; if it's 'active', then it is still being processed by
something.
You might also want to check the Task Server status and your App Server
status in the Admin UI to see if anything has been running for awhile.
I've run into something similar while creating pipelines for cpf. When I
haven't managed state properly for a document within a pipeline, I've
ended up with documents in the 'active' state. ( In reality, there was
a deadlock of 2 processes fighting for the same resource (the
document).) While 'active', I can query the document (view), but can't
delete or modify. I was in a dev env. so I was able to just bounce the
server to release the documents so I could delete them and then test my
pipelines again.
Hope this helps,
Pete
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Alan Storm
Sent: Wednesday, July 02, 2008 9:25 AM
To: Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] xdmp:document-delete() queries hanging
I'm running into an odd problem when using the xdmp:document-delete
function. I'm relatively new Mark Logic and not sure where to begin
tracking down this problem. If anyone can point me in the right
direction
or has a theory as to what's going on I'd appreciate the help.
Through cq, if I run the following query, (fake path)
xdmp:document-delete(
"/Path/To/File/file_name_9906.xml"
)
my web browser will just spin and spin, seemingly forever. What's odd
is,
if I attempt the same query with a **different file** in the same
folder,
the query runs fine and will remove the document
xdmp:document-delete(
"/Path/To/File/file_name_9905.xml"
)
I'm able to **view** the content of the document without any problems
for $xml in doc("/Path/To/File/file_name_9906.xml")
return $xml
It's only when I attempt to delete it that I run into problems. I also
run
into the same behavior when attempting to replace a node in the same
document.
We're running our Content Server on the windows server platform. I've
monitored the event viewer and haven't seen any log messages that relate
to
this. I'm not sure what level of logging we or the server are doing
though
(like I said, I'm very new to Mark Logic).
Any debugging tips and/or theories as to what's going on would be
greatly
appreciated.
Thank you.
--
Alan Storm
astorm at rubicon.com
Rubicon International
_______________________________________________
General mailing list
General at developer.marklogic.com
http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list