projecteru / redis-trib.py

Redis Cluster lib in Python
MIT License
135 stars 45 forks source link

Does redis-trib.py support redis 4.0 cluster ? #6

Closed dingyiran closed 6 years ago

dingyiran commented 6 years ago

There is a error:

clusternode.py", line 13, in init self.port = int(port) ValueError: invalid literal for int() with base 10: '6379@16379'

dsoudakov commented 6 years ago

I just had the same problem. And judging from wiki examples' output it doesn't. Using official redis-trib.rb now.

zheplusplus commented 6 years ago

https://github.com/antirez/redis/commit/cbcffed90792ef83bcba3bfcbbd5e64380d1b0b9

zheplusplus commented 6 years ago

This change was committed at Feb 2 2016 alone, so seems that this kind of port format has nothing to do with Redis 4.0

zheplusplus commented 6 years ago

Fine, it is a new feature in 4.0

https://github.com/antirez/redis/commit/b841f3ad1a88e11a9d4abca1c7f0cf9df63e613d

zheplusplus commented 6 years ago

Fixed in redis-trib.py 0.5.1, released. Thank you all @dingyiran @dsoudakov