node_redis: Incomplete results from EVAL

60 views
Skip to first unread message

Felix E. Klee

unread,
Oct 12, 2012, 6:14:15 PM10/12/12
to redi...@googlegroups.com
When I EVAL the following LUA script from [node_redis][1], then the
result is incomplete.

return {{'a', 1}, {'b', 2}, {'c', 3}}

The result (JavaScript):

[['a', 1], ['b', 2], null]

If I make the LUA table longer, then simply more null values are added
in the result. The behavior is consistent with every run.

When I EVAL in `redis-cli` (Redis version 2.6.0-rc8), then things work
as expected:

redis 127.0.0.1:6379> eval "return {{'a', 1}, {'b', 2}, {'c', 3}}" 0
1) 1) "a"
2) (integer) 1
2) 1) "b"
2) (integer) 2
3) 1) "c"
2) (integer) 3

I didn't yet do any in depth debugging. But perhaps someone has an idea
what may be the issue?

[1]: https://github.com/mranney/node_redis

Josiah Carlson

unread,
Oct 12, 2012, 11:08:05 PM10/12/12
to redi...@googlegroups.com
You may want to post the bug on the node-redis repository.

- Josiah
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

Felix E. Klee

unread,
Oct 13, 2012, 5:38:09 AM10/13/12
to redi...@googlegroups.com
On Sat, Oct 13, 2012 at 5:08 AM, Josiah Carlson
<josiah....@gmail.com> wrote:
> You may want to post the bug on the node-redis repository.

Reported: <https://github.com/mranney/node_redis/issues/307>

Of course, it is not certain that this is really a node_redis issue.

Dvir Volk

unread,
Oct 13, 2012, 2:39:33 PM10/13/12
to redi...@googlegroups.com
Can you recreate it with any other client?

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.




--
Dvir Volk
Chief Architect, Everything.me

Felix E. Klee

unread,
Oct 13, 2012, 4:46:31 PM10/13/12
to redi...@googlegroups.com
On Sat, Oct 13, 2012 at 8:39 PM, Dvir Volk <dvi...@gmail.com> wrote:
> Can you recreate it with any other client?

Look at my bug report.
Reply all
Reply to author
Forward
0 new messages