Bugs item #1896755, was opened at 2008-02-19 09:45
Message generated for change (Comment added) made by sjoerd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1896755&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: updates under stress
Initial Comment:
updates can still corrupt an xml-document.
in the attached 'bug.tgz' there is a tiny script that repeatedly does two
things:
- check the validity of an xml-document under stress
- do a small update on an xml-document
if this script is run it will only output 0's, meaning that the document is
still valid. if this script is run in 3 threads at the same time, it will
(within short time) return non-'0' values, which indicate the document has been
corrupted.
how to use the script:
- start bin/Mserver --dbinit="module(pathfinder);"
- insert start.xml as an updatable document named 'test.xml', for example with
a free-percentage of 10
- start do.sh in 3 different shells
- wait
this was tested with the monetdb-install.sh script (on feb 12). monetdb says:
# MonetDB Server v4.22.0
# based on GDK v1.22.0
# Copyright (c) 1993-2008, CWI. All rights reserved.
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs; dynamically
linked.
----------------------------------------------------------------------
>Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-02-19 13:06
Message:
Logged In: YES
user_id=43607
Originator: NO
Perhaps this is a problem in maintaining the indices. I tried running the
test, and at some point I got non-0 results, so I stopped the three
scripts. Using a variation on the query that returns the 0, I get some
strange results. Te node being returned doesn't actually match the query:
xquery>doc("test.xml")//aap[not(@xid)]
more><>
<mies prefix="dum"/>
xquery>doc("test.xml")//noot[not(@name)]
more><>
<aap xid="1"><noot name="hazel"><aap xid="1"><noot name="hazel"><aap
xid="1"><noot name="hazel"/><mies prefix="dum"/></aap></noot><mies
prefix="dum"><aap xid="1"><aap xid="1"><noot name="hazel"><aap
xid="1"><noot name="hazel"/><mies prefix="dum"/></aap></noot><mies
prefix="dum"/></aap><noot name="hazel"/><mies
prefix="dum"/></aap></mies></aap></noot><mies prefix="dum"/></aap>
xquery>doc("test.xml")//mies[not(@prefix)]
more><>
<noot name="hazel"><aap xid="1"><noot name="hazel"><aap xid="1"><noot
name="hazel"/><mies prefix="dum"/></aap></noot><mies prefix="dum"><aap
xid="1"><aap xid="1"><noot name="hazel"><aap xid="1"><noot
name="hazel"/><mies prefix="dum"/></aap></noot><mies
prefix="dum"/></aap><noot name="hazel"/><mies
prefix="dum"/></aap></mies></aap></noot>
xquery>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1896755&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