Bugs item #1981852, was opened at 2008-06-02 10:49
Message generated for change (Comment added) made by sjoerd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1981852&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/tests
Group: Pathfinder 0.24
Status: Closed
Resolution: Fixed
Priority: 6
Private: No
Submitted By: Stefan Manegold (stmane)
Assigned to: Sjoerd Mullender (sjoerd)
Summary: PF/alg: test immune_for_updates.SF-1766259 fails

Initial Comment:
With the Algebra back-end, test 
pathfinder/Tests/BugTracker/immune_for_updates.SF-1766259.xq.in fails with

ERROR = !ERROR: ordered left and right head columns (iters) expected.

http://monetdb.cwi.nl/testing/projects/monetdb/Stable/pathfinder/.mTestsG103/GNU.64.64.d-Fedora8/tests_BugTracker/immune_for_updates.SF-1766259.err.00.html

Since the test uses fn:subsequence(), this might be related to
[ 1981800 ] PF/alg: fn:subsequence() returns empty result
https://sourceforge.net/tracker/index.php?func=detail&aid=1981800&group_id=56967&atid=482468


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

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-06-08 16:18

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

Even though Lefteris' reversal of inserts already seemed to fix this bug,
that wasn't actually a fix for this.
If you change the subsequence quoted by Stefan into a
reverse(subsequence(...()), both MPS and ALG fail the test, although the
order of updates shouldn't matter in this test since all updates are to
different nodes.

The real fix for this test was to add a couple of copy() calls.

Added test tests/BugTracker/immune_for_updates.SF-1981852  which is like
immune_for_updates.SF-1766259, except that it uses
reverse(subsequence(...)).

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

Comment By: Stefan Manegold (stmane)
Date: 2008-06-08 15:33

Message:
Logged In: YES 
user_id=572415
Originator: YES

Appears to be fix by Lefteris' latest Algebra update re-order
fixes/changes.


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

Comment By: Stefan Manegold (stmane)
Date: 2008-06-03 16:22

Message:
Logged In: YES 
user_id=572415
Originator: YES

extended test for debugging

before the
"let $todo := subsequence(doc("prepared49736.data")/XIRAF/item[*],
1281,256) ..." update query,
the updated document seems to have the same status with both MPS & ALG;
after this update query, the status with ALG differs from the one with
MPS,
resulting in the error with ALG in the 
"let $todo := subsequence(doc("prepared49736.data")/XIRAF/item[*],
1537,256)" update query
as analyzed by JanR.


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

Comment By: Jan Rittinger (tsheyar)
Date: 2008-06-03 11:55

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

The original error message is gone.

The query or better the queries however still fail because exactly-one()
is called with an empty input sequence in the second to last query.

If I replace the original second to last query

let $todo := subsequence(doc("prepared49736.data")/XIRAF/item[*],
1537,256)
let $dest := for $i in doc("test10.xml")//[EMAIL PROTECTED]
             where some $k in $todo/@xid satisfies $k = $i/@xid
             return $i
for $item in $todo
return
  do insert $item/*
  into exactly-one([EMAIL PROTECTED] = $item/@xid]])

with the query

let $todo := subsequence(doc("prepared49736.data")/XIRAF/item[*],
1537,256)
let $dest := for $i in doc("test10.xml")//[EMAIL PROTECTED]
             where some $k in $todo/@xid satisfies $k = $i/@xid
             return $i
for $item at $b in $todo
return
  ($b, [EMAIL PROTECTED] = $item/@xid]], "
")

that prints the input for the exactly-one call for each iteration then
iterations 1-65 and 67-69 contain no join results.

As I'm not sure what happens I reassign the bug to the ones that were
originally involved (Sjoerd, Stefan, and Wouter).



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1981852&group_id=56967

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to