Skip to content

Replacing a Dgraph Alpha assigns it to a new group. #3326

@danielmai

Description

@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?
    Yes

  • What is the hardware spec (RAM, OS)?
    n/a

  • Steps to reproduce the issue (command/config used to run Dgraph).

  1. Run Dgraph cluster with 1 Zero, 1 Alpha.
  2. Remove the Alpha with removeNode. Check it's ID and group membership with Zero's /state.
curl localhost:6080/removeNode?group=1&id=1
  1. The Alpha is removed and will stop running. It's removal can be checked by looking at Zero's /state.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething is broken.status/needs-attentionThis issue needs more eyes on it, more investigation might be required before accepting/rejecting it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions