Bugs item #1911209, was opened at 2008-03-10 17:37
Message generated for change (Comment added) made by stmane
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: Open
Resolution: Fixed
>Priority: 6
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: 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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to