[MarkLogic Dev General] xdmp:document-delete() queries hanging

Pete Aven Pete.Aven at marklogic.com
Wed Jul 2 11:54:04 PDT 2008


Hi Alan,

     Unfortunately, I think you'll have to restart the server.  If the
'cancel' button is not working from Admin, then in all likelihood you
have an undetectable deadlock.  See the Understanding Transactions
section of the developer guide for more info on how to prevent this in
the future.


-----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 11:15 AM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] xdmp:document-delete() queries
hanging

On 7/2/08 10:03 AM, "Pete Aven" <Pete.Aven at marklogic.com> wrote:

> 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.

Pete, 

Thanks for the tips, particularly checking the Task Server/App Server
status
in the admin.  I saw a bunch of old requests in the App Server that
varied
in length from 2 hours to 24 hours, which are almost certainly my
attempts
to access this file.

I also think I have the root problem figured out. I'd been working on a
query that would both update some documents on the server, and then
copy/archive them elsewhere.  When I combined the update/copy actions
into a
single script, that's when I started seeing this behavior. I'll be
taking
the Grouch Marx approach and "Not Doing That" anymore.

The only other question I'd have here (for anyone) would be, is there a
way
to kill those old requests that are hanging around the server (short of
a
reboot)?  I've tried clicking the [cancel] link/button for all of them,
but
they're pretty insistent on sticking around.

Pete, thanks again for your help!

--
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