You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/08/24 04:54:14 UTC

[GitHub] [rocketmq-operator] caigy commented on issue #80: replica can not restart automatically

caigy commented on issue #80:
URL: https://github.com/apache/rocketmq-operator/issues/80#issuecomment-904321317


   The problem can be reproduced by following steps:
   1. Start a RocketMQ cluster with 2 brokers;
   2. When no subscription exists, that is, the file `/root/store/config/subscriptionGroup.json` in broker-0-master-0 does NOT exists, increase the size of cluster;
   3. The added brokers will failed to start because  `/root/store/config/subscriptionGroup.json` contains `<nil>`, which is an invalid JSON string.
   
   Causeļ¼š
   When the actual size of cluster is less than the specified number, the broker controller will create new brokers, and copy `subscriptionGroup.json` in broker-0-master-0 to the added brokers. However, if that file does not exists, `controller/broker.exec` just returns a string "<nil>", which is copied to the added brokers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org