Code Monkey home page Code Monkey logo

Comments (3)

MathieuBordere avatar MathieuBordere commented on August 24, 2024

The vast majority of Jepsen test failures can be attributed to this bug, it's quite annoying and frequent, will do a quick analysis.

from raft.

MathieuBordere avatar MathieuBordere commented on August 24, 2024

Backtrace

0x7f65f993834a UvTruncate
        src/uv_truncate.c:169  
0x7f65f991f4c9 deleteConflictingEntries
        src/replication.c:1030 
0x7f65f991f4c9 replicationAppend
        src/replication.c:1087 
0x7f65f991ac76 recvAppendEntries
        src/recv_append_entries.c:124   
0x7f65f991a58f recvMessage     
        src/recv.c:27          
0x7f65f991a58f recvCb
        src/recv.c:103         
0x7f65f992ee7b uvFireRecvCb    
        src/uv_recv.c:190      
0x7f65f992f3c7 uvServerReadCb  
        src/uv_recv.c:302      
0x7f65f99a7ba0 ???
        ???:0
0x7f65f99a86d7 ???
        ???:0
0x7f65f99adb7f ???
        ???:0
0x7f65f999d84b ???
        ???:0
0x7f65f9cf77cf taskRun
        src/server.c:732
0x7f65f9cf77cf taskStart
        src/server.c:772
0x7f65f9d64608 ???
        ???:0
0x7f65f9add132 ???
        ???:0
0xffffffffffffffff ???
        ???:0

from raft.

MathieuBordere avatar MathieuBordere commented on August 24, 2024

looks like the in-memory log doesn't reflect the state anymore of the on-disk log after a segment prepare failed here

raft/src/uv_append.c

Lines 112 to 119 in cd0c3d0

if (status != 0) {
tracef("rollback uv->append_next_index was:%llu",
uv->append_next_index);
uv->append_next_index -= append->n;
tracef("rollback uv->append_next_index now:%llu",
uv->append_next_index);
}
QUEUE_REMOVE(head);

similar issue in #255.

from raft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.