Describe the bug
I have recently started using Redis 7.0 using sentinels and when I try to type the command sentinel slaves I get the error
(error) ERR unknown subcommand `slaves`. Try SENTINEL HELP
To reproduce
I deployed two redis instances in kubernetes with the following configuration to test out the sentinel commands.
redis.conf
bind 0.0.0.0
daemonize no
protected-mode no
supervised no
port 6379
logfile ""
user default on nopass ~* +@all
sentinel.conf
bind 0.0.0.0
daemonize no
protected-mode no
supervised no
port 26379
logfile ""
user default on nopass ~* +@all
sentinel monitor master redis-master 6379 1
sentinel resolve-hostnames yes
sentinel announce-hostnames yes
redis-master container
redis-server /etc/redis/redis.conf
redis-sentinel container
redis-server /etc/redis/sentinel.conf --sentinel
Expected behavior
I am expecting a list of redis slaves and the same output as sentinel replicas
Additional information
Looking at the source for parsing subcommands in sentinel.c it looks like the subcommand slaves and replicas are analogous and should have the same output because of this code branch in the sentinelCommand method.
} else if (!strcasecmp(c->argv[1]->ptr,"slaves") ||
!strcasecmp(c->argv[1]->ptr,"replicas"))
{
I also noticed that the generated file commands.c appears to be missing the subcommand slaves and there is no JSON file for it in https://github.com/redis/redis/tree/unstable/src/commands