GithubHelp home page GithubHelp logo

Comments (4)

willemt avatar willemt commented on August 17, 2024

Thanks for highlighting this, I'll have a look into it

BTW, your email did get caught by a spam filter sorry. I'll reply to it soon 😄

from raft.

pmembrey avatar pmembrey commented on August 17, 2024

I was running it on Manjaro (based on Arch Linux) and I'm using the clang compiler. I just gave it a go on my Ubuntu laptop and the tests build and run, but stop with an error at the end:

ok 59 - TestRaft_leader_sends_appendentries_with_NextIdx_when_PrevIdx_gt_NextIdx
ok 60 - TestRaft_leader_append_entry_to_log_increases_idxno
ok 61 - TestRaft_leader_steps_down_if_received_appendentries_is_newer_than_itself

gcov src/raft_server.c
src/raft_server.gcno:cannot open notes file
$

I'll fiddle about some more on my main machine tonight - looks like it could be something to do with my set up...

from raft.

willemt avatar willemt commented on August 17, 2024

Looks like it works on your Ubuntu laptop. The remaining error (ie. raft_server.gcno:cannot open notes file) doesn't effect the test suite, it just seems to have some trouble displaying the test coverage

from raft.

pmembrey avatar pmembrey commented on August 17, 2024

Turned out the raft_server pointer being passed in was corrupt. The values created by the code were correct for the bad data I passed in. Garbage in, garbage out.

Not a bug in craft so closing out.

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.