Bugs item #1911209, was opened at 2008-03-10 17:37
Message generated for change (Settings changed) made by sjoerd
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: 8
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: Sjoerd Mullender (sjoerd)
Date: 2009-07-31 10:03
Message:
Finally added test in pathfinder/tests/BugTracker:
hang_non_existing_doc.SF-1911209.
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2009-02-16 13:36
Message:
re-opened to remind us that we should consider adding a test
----------------------------------------------------------------------
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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs