Skip to content

[BUG]: after power outage alphas don't start anymore #8756

@fmt-Println-MKO

Description

@fmt-Println-MKO

What version of Dgraph are you using?

happens in: v22.0.2 and 23-beta-1

Tell us a little more about your go-environment?

Go version : go1.18.5
jemalloc enabled : true

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

Docker, 4 vCPU, 8 GB Ram

What steps will reproduce the bug?

Start a local cluster with 3 alphas and 1 zero in docker.
add a schema and data.
plug the power of while the system is running.

sometimes, 1 alpha sometimes 2 alphas or it also happens that all 3 alphas can't start now:

2023/02/21 18:36:36 3 state.commit 6886 is out of range [150, 6885] panic: 3 state.commit 6886 is out of range [150, 6885]

Expected behavior and actual result.

if an alpha is out of sync it should sync itself

Additional information

more details are discussed in the chat here:
https://discuss.dgraph.io/t/power-outage-and-now-the-cluster-didnt-start-again/18314are

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalecommunityIssue or PR created by the community.kind/bugSomething is broken.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions