Skip to content

Node fails on restart #654

@sebastiaoamaro

Description

@sebastiaoamaro

Hi, we are a group of researchers analyzing the bugs found by Jepsen. During this process, we found a bug not reported in the version 2d1cf30.
This bug occurs when a node crashes on line:

int fd = open(rr->config->rdb_filename, O_CREAT|O_TRUNC|O_RDWR, 0666);

The following message appears when the node attempts to restart:

101:M 30 Apr 2025 10:57:46.065 # Short read or OOM loading DB. Unrecoverable error, aborting now.
101:M 30 Apr 2025 10:57:46.065 # Internal error in RDB reading offset 0, function at rdb.c:2284 -> Unexpected EOF reading RDB file
[offset 0] Checking RDB file raft1.rdb
--- RDB ERROR DETECTED ---
[offset 0] Unexpected EOF reading RDB file
[additional info] While doing: start
[additional info] Reading type 0 (string)
[info] 0 keys read
[info] 0 expires
[info] 0 already expired

We did not yet test this on the main repository, when we do we will let you know.

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