sreeix / redis-proxy

A Proxy for redis servers, for failover and standby handling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'raw' of undefined

atrun opened this issue · comments

I get this Exception when I am trying to run code:

for (int n = 0; n <100000; n++) {
String key = "foo" + n;
jedis.set(key, "bar" + n);
jedis.get(key);
}


debug: Pinging 192.168.80.92:6379
debug: Pinging 192.168.80.83:6379
debug: client connected
debug: Free pool exists... reserving one from there..

/home/hadoop/redis/node_modules/redis-proxy/node_modules/node-redis-raw/lib/raw.js:34
if(this.command_queue.peek && this.command_queue.peek().raw){
^
TypeError: Cannot read property 'raw' of undefined
at RedisClient.on_data (/home/hadoop/redis/node_modules/redis-proxy/node_modules/node-redis-raw/lib/raw.js:34:58)
at Socket. (/home/hadoop/redis/node_modules/redis-proxy/node_modules/redis/index.js:66:14)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:367:14)
Forever detected script exited with code: 1
Forever restarting script for 3 time
info: using config/config.json as configuration source
debug: We have a server that went up
debug: We have a server that went up
info: setting up the active 192.168.80.92:6379
debug: Creating the pool for active server6379
info: 192.168.80.92:6379 is slave of no one
info: Marking 192.168.80.83:6379 as slave of 192.168.80.92:6379