Bugs item #1911209, was opened at 2008-03-10 17:37
Message generated for change (Settings changed) made by boncz
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: (zombie: MonetDB4 4.22)
>Status: Closed
>Resolution: Fixed
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.
----------------------------------------------------------------------
Comment By: Peter Boncz (boncz)
Date: 2008-03-30 03:00
Message:
Logged In: YES
user_id=591107
Originator: NO
a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
bug.
If you update MonetDB to the HEAD, I would expect the problem to disappear
----------------------------------------------------------------------
Comment By: Peter Boncz (boncz)
Date: 2008-03-30 01:58
Message:
Logged In: YES
user_id=591107
Originator: NO
a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
bug.
If you update MonetDB to the HEAD, I would expect the problem to disappear
----------------------------------------------------------------------
Comment By: Peter Boncz (boncz)
Date: 2008-03-29 21:22
Message:
Logged In: YES
user_id=591107
Originator: NO
a recent checking in gdk_bbp.x (deadlock resolved) seems to solve this
bug.
If you update MonetDB to the HEAD, I would expect the problem to disappear
----------------------------------------------------------------------
Comment By: Wouter Alink (vzzzbx)
Date: 2008-03-12 13:15
Message:
Logged In: YES
user_id=621590
Originator: YES
forgot to say: it doesn't happen with 4.20
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1911209&group_id=56967
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs