RocketMQ deleteSubscriptionGroup 不删除 consumer offset 解决

Rocketmq Delete Consumer Group

Posted by BlueFat on Tuesday, November 22, 2022

https://github.com/apache/rocketmq/issues/3660

使用下面命令,删除订阅组成功但在rocketmq-dashboard 还能看到订阅组信息,只不过会显示1970-01-01 08:00:00,但是过了删除文件时间点(deleteWhen)和文件保留时间(fileReservedTime),依旧还在。

mqadmin deleteSubGroup -c DefaultCluster -b 192.168.10.18:1091 -n 192.168.10.18:9876 -g xlp_group_1

正确步骤:删除订阅组且要删除consumer offset

mqadmin deleteSubGroup -c DefaultCluster -b 192.168.10.18:1091 -n 192.168.10.18:9876 -g xlp_group_1 -r true

注意:–removeOffset 需要设置为true