Bugs item #2049320, was opened at 2008-08-13 11:28
Message generated for change (Settings changed) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2049320&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 general
Group: Pathfinder "stable"
>Status: Open
Resolution: Fixed
>Priority: 6
Private: No
Submitted By: mafweb (mafweb)
Assigned to: Nobody/Anonymous (nobody)
Summary: pf:collection doc count wrong (again?)

Initial Comment:
I've shredded 8931 documents as collection "xbrl" into an empty database build 
from MonetDB-Feb2008 tarball.

When I do:

let $docs := for $d in collection('xbrl')
             where $d/*
             return $d
return count($docs)

it should return 8931, but instead the answer was: 8924.

So, I decided to download yesterdays tarball, after a long wait while 
compiling, I shredded the 8931 documents into collection xbrl again.

Now I get:
ERROR = !fatal error: Algebra implementation for function `fn:collection' 
unknown.
This is not the main issue, but if someone could tell me why I'm missing fn 
functions, it would help.

So, changing to 

count(pf:documents())
results in 8977 (???)

restart of the Mserver, redo query:

count(pf:documents())
results in 8931 (OK, as it should be)

Rechecked the feb version, after restart Mserver count indeed results correct 
amount.

What is wrong here? Some counter recalculated after server start, which isn't 
set correctly initially?

----------------------------------------------------------------------

>Comment By: Stefan Manegold (stmane)
Date: 2009-02-16 13:34

Message:
re-opened to remind us that we should consider adding a test


----------------------------------------------------------------------

Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-10-01 16:39

Message:
This seems to work in the current development version.
Note that to use the collection function you need to pass the -g
(--no-algebra) option to mclient.
Can you check?

What I did to test is to load 8931 copies of the example document from bug
1990815 into the same collection (with 10% extra update space) and then run
the two queries mentioned above (with the -g flag).  All of this without
restarting the server.
I did have to fix an unrelated bug in the server first, so you really need
a very up-to-date server.

----------------------------------------------------------------------

Comment By: Lefteris Sidirourgos (lsidir)
Date: 2008-08-13 11:43

Message:
Logged In: YES 
user_id=1856546
Originator: NO

Hi, fn:collection is not implemented yet in the algebra front-end. It was
mentioned in the release notes.

This bug seems highly relates to:
[ 2009556 ] XQ: "Zombie" document in collection
https://sourceforge.net/tracker/index.php?func=detail&aid=2009556&group_id=56967&atid=482468

which in turn is related to:
[ 1976341 ] XQ: leftovers after deleting document
http://sourceforge.net/tracker/index.php?func=detail&aid=1976341&group_id=56967&atid=482468

and probably that is why after restarting the server the count was ok.

We are trying to fix these series of bugs, which probably all originate
from the same problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2049320&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