Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Master node route info was lost when some node restarted and joined the group in dledger mode #1464
when I running rocketmq on dledger with jepsen test, I found master node route info was lost when a node restarted and joined the group. It caused the service to be unavailable for a period of time until master re-registered with nameserver.
When node restart and join the group, the service is still available.
Since brokerId defaults to 0,
when broker restart, it will register with namserver before brokerId is changed(when dledger role is changed),
causing the route info of master to be overwritten.
…me node join the group in dledger mode Since brokerId defaults to 0, it will register with nameserver before brokerId is changed when broker restart, causing the route info of master to be overwritten. Set brokerId defaults to -1 in dledger mode and do not register wtih nameserver until brokerId is changed. Close apache#1464