Control: clone -1 -2
Control: retitle -2 tarantool: box.unpack() limit of 8000 tuples
Control: severity -2 normal
Control: affects -2 src:libdr-tarantool-perl
Control: tags -1 +patch

On Wed, Apr 03, 2013 at 12:38:09AM +0200, Axel Beckert wrote:
> 
> | I guess that you use different types of indexes on your hosts (HASH on
> | amd64 and TREE on i386)
> | 
> | TREE index supports both box.select(0) and
> | box.space[x]:index[y]:iterator(box.index.ALL) without a key.
> | box.select() in this case returns all tuples from a space. The number
> | of returned tuples is limited only by Lua stack size.
> | If a result set is too large then Lua raises "Lua error: stack
> | overflow (call: out of stack)" error.
> | See https://bugs.launchpad.net/tarantool/+bug/1018775
> 
> This is again a (confirmed) bug report against tarantool and there is
> explained:
> 
> | Currently select_range() can only return 8000 tuples, because it
> | puts these tuples into a Lua table, and then calls unpack() on the
> | table.
> 
> So for me this currently looks like an issue in tarantool and not in
> libdr-tarantool-perl. I'm though not sure what's the best way to solve
> that. For wheezy patching the testsuite to accept both types of error
> messages is possibly an option to solve this issue.

I think TODOing the test is probably better than encoding a buggy output
into the test, since there's less risk that the change will remain
part of the test suite long after the bug has been fixed in tarantool.

The attached patch achieves this, and will NMU in a few days if we don't
hear from the maintainer.

Tested on sid, and the breakage is no worse than before.

I'm cloning this bug to tarantool to track the underlying problem.

Cheers,
Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
Index: libdr-tarantool-perl-0.15/t/050-async-client.t
===================================================================
--- libdr-tarantool-perl-0.15.orig/t/050-async-client.t	2012-06-04 07:29:01.000000000 +0100
+++ libdr-tarantool-perl-0.15/t/050-async-client.t	2013-04-05 00:10:00.000000000 +0100
@@ -265,7 +265,10 @@
                 my ($status, $code, $errstr) = @_;
                 cmp_ok $status, '~~', 'error', 'status';
                 cmp_ok $code, '>', 0, 'code';
-                like $errstr, qr{Partial key in}, 'errstr';
+                TODO: {
+                    local $TODO = 'This triggers https://bugs.launchpad.net/tarantool/+bug/1018775 on i386';
+                    like $errstr, qr{Partial key in}, 'errstr';
+                }
                 $cv->end;
             }
         );

Reply via email to