Skip to content

Cluster restart question #274

@mbj4668

Description

@mbj4668

I have a question about what can be expected after a cluster restart.

I have a cluster with three nodes, and the machine is a simple k-v store implemented as a map, with perhaps ~100 elements.
Everything is stable, and I stop all three nodes. Then they are all restarted. Some short time after ra:restart_server(Name, {Module, node()}) has returned ok, I do a leader_query to read a value that I know was in the kv store before the restart, but at this time it is not there (I get a proper no_such_key return value from my callback module, not an error). Then after timer:sleep(1000) I try the same leader_query, and now the item is there.

So my question is if this is expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions