Bugs item #1911209, was opened at 2008-03-10 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1911209&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/runtime
Group: MonetDB4 4.22
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Wouter Alink (vzzzbx)
Assigned to: Nobody/Anonymous (nobody)
Summary: XQ: MonetDB 'hangs' after requesting non-existing doc
Initial Comment:
Using mps.
Querying 'pf:documents()' will never return ('hang') after having inserted a
node and then querying for a non-existing doc a few times.
Reproduce by inserting a document "aap.xml" in the database (with content
'<aap/>' and shred it updatable):
pf:add-doc("/tmp/aap.xml","aap.xml","aap.xml",10)
The following script will execute fine (can be run many times):
N=0
while [[ $N -lt 1000 ]]
do
echo "Step $N"
echo 'pf:documents()' | mclient -lxq > /dev/null
echo 'doc("aap.xml")' | mclient -lxq > /dev/null
N=$(($N + 1))
done
This script will execute fine (it returns an error for each document, can also
be run many times):
N=0
while [[ $N -lt 1000 ]]
do
echo "Step $N"
echo 'pf:documents()' | mclient -lxq > /dev/null
echo 'doc("does_not_exist.xml")' | mclient -lxq > /dev/null
N=$(($N + 1))
done
perform the update:
do insert <beer/> into doc("aap.xml")/aap
now execute the above script again:
N=0
while [[ $N -lt 1000 ]]
do
echo "Step $N"
echo 'pf:documents()' | mclient -lxq > /dev/null
echo 'doc("does_not_exist.xml")' | mclient -lxq > /dev/null
N=$(($N + 1))
done
on my system this script 'hangs' on the 'pf:documents()' query after a few
tries (between 10 and 250).
System: Fedora Core 8, 64bit, MonetDB 4.22 64bit-oids, Feb2008 supertarball.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1911209&group_id=56967
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs