Moved from GitHub dgraph/3326
Posted by danielmai:
If you suspect this could be a bug, follow the template.
What version of Dgraph are you using?
master, latest (v1.0.14)
Have you tried reproducing the issue with latest release?
What is the hardware spec (RAM, OS)?
Steps to reproduce the issue (command/config used to run Dgraph).
- Run Dgraph cluster with 1 Zero, 1 Alpha.
- Remove the Alpha with removeNode. Check it’s ID and group membership with Zero’s /state.
- The Alpha is removed and will stop running. It’s removal can be checked by looking at Zero’s /state.
- Start a new Alpha. The Alpha will join the cluster under Group 2.
Continuing steps 2 to 4 will assign the Alpha to a new group.
- Expected behaviour and actual result.
I expected the Alpha to replace the previous Alpha’s membership.
In a two node cluster, when an Alpha is added to the cluster Zero should assign membership to the empty group 1.
In the general case, Zero should add Alphas to fill in empty membership spots in existing groups first before creating another group.