Giter Club home page Giter Club logo

mit-6.824's People

Contributors

hhow09 avatar celskeggs avatar tslilyai avatar jjgo avatar

Watchers

 avatar

mit-6.824's Issues

3B Bug: TestSnapshotRecoverManyClients3B

Bug from TestSnapshotRecoverManyClients3B

345222 INFO S4 received AppendEntries from leader 1. {Term:1 LeaderId:1 PrevLogIndex:1680 PrevLogTerm:1 Logs:[{Index:1681 Term:1 Command:{Type:2 Key:13 Value:x 13 39 y ClientID:176668923626684712 RequestID:83}} ...}}] LeaderCommit:1680} at currentTerm=1

...

345243 SNAP S4 cond install snapshot at term 1, index 1681 
345245 INFO S4 received AppendEntries from leader 1. {Term:1 LeaderId:1 PrevLogIndex:1700 PrevLogTerm:1 Logs:[{Index:1701 Term:1 Command:{Type:2 Key:13 Value:x 13 40 y ClientID:176668923626684712 RequestID:84}} {Index:1702 Term:1 Command:{Type:0 Key:0 Value: ClientID:778612666058583658 RequestID:85}}] LeaderCommit:1700} at currentTerm=1
345245 APND S4 not success: node does not contains prevLogIndex=1700, but log last index=1681
345246 TIMR S4 ticker: current state: Follower, term: 1
345246 INFO S4 applied 6 messages, set last applied: 1680
345246 INFO S4 applied 1 messages, set last applied: 1681
panic: interface conversion: interface {} is nil, not kvraft.Op // got the baseEntry

Explain

  1. Follower AppendEntries() -> setCommitIndex(1680)
  2. applyMsgs() use commit index 1680
    • applying msgs to channel, before setting last applied
  3. Follower Install Snapshot and set setCommitIndex(1681)
  4. (continue 2) applyMsgs() setLastApplied(1680)
    • applyMsgs() evoked again after 4 (should not happen)
    • we cannot set last applied < commit index

sometimes failed to reach agreement

--- FAIL: TestPersist22C (32.75s)
    config.go:547: one(20) failed to reach agreement
--- FAIL: TestSnapshotInstall2D
    config.go:547: one(20) failed to reach agreement
--- FAIL: TestFigure82C (39.91s)
    config.go:545: one(3143671327757728263) failed to reach agreement
FAIL

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.