New issue 257 by Toms.Veidemanis: zunionstore/zinterstore returns unknown
command on 1.3.14
http://code.google.com/p/redis/issues/detail?id=257
redis v 1.3.14 (64bit) on ubuntu 9.10
installed from ftp://ftp.de.debian.org/debian/pool/main/r/redis/
using zinterstore & zunionstore returns unknown command
using zunion without arguments says that not enough parameters set
adding the keys and entering zunion returns unknown command
The version 1.3.14 is actually 2.0.0-rc1. I've tried to replicate this
behavior but a fresh compiled version of this version works as expected for
me. Could you elaborate on the client you're using, and maybe try to
compile Redis from source and try again? Thanks.
ok.. I removed all previous versions of redis, downloaded 2.0.0.-rc1 from
code.google.com
unarchieved it, typed make & afterwards run the ./redis-server command & in
other terminal ./redis-cli
then typed zinterstore in rediscli (in terminal) & the same reply..
I'll check how php client (predis) is coping with the command
Ok.. I experimented with php client (predis)
on Predis everything works fine, seams that the problem could be in the
terminal client, since if I put on monitor command, I see Predis making
calls for zinterstore and the script displays me correct aggregated
results, however when i copy the command from monitor in terminal client,
it gives me the unknown command
btw thanks for pointing out that I should try different clients :)
Same here, found this searching for my especific problem:
- Downloaded "Redis 2.0.0 RC1b"
- unziped, make
- Installed tcl8.5
- In another terminal "tclsh test-redis.tcl"
- All went well until ...
#157 ZUNION against non-existing key doesn't set destination ERR
unknown command 'zunion'
while executing
"::redis::redis_read_reply $fd"
(procedure "::redis::__dispatch__" line 32)
invoked from within
"$r zunion dst_key 1 zseta"
invoked from within
"list [$r zunion dst_key 1 zseta] [$r exists dst_key]"
("uplevel" body line 3)
invoked from within
"uplevel 1 $code"
(procedure "test" line 6)
invoked from within
"test {ZUNION against non-existing key doesn't set destination} {
$r del zseta
list [$r zunion dst_key 1 zseta] [$r exists dst_key]
} {..."
(procedure "main" line 1314)
invoked from within
"main"
invoked from within
"if {$::stress} {
stress
} else {
main
}"
(file "test-redis.tcl" line 2327)
- Tested then with "redis-cli"
./redis-cli
redis> zunion
(error) ERR unknown command 'zunion'
Comment #6 on issue 257 by pcnoordhuis: zunionstore/zinterstore returns
unknown command on 1.3.14
http://code.google.com/p/redis/issues/detail?id=257
The problem here is that this test-suite is deprecated; the new one lives
in the tests/ directory. I'll ensure that the deprecated test-suite will no
longer ship with 2.0. The issue will no longer exist after this, because
the ZUNION/ZINTER commands were atomically renamed to
ZUNIONSTORE/ZINTERSTORE and were only referenced in the deprecated
test-suite. Anyway, thanks for the report.