Comments (4)
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.
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.
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.
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)
- Possible issues HOT 1
- How to add SOVERSION to libraft.so?
- Not implemented log_clear callback leads to not synchronized logs
- reserved identifier violation
- Unused raft_term_t term in log_load_from_snapshot
- potential race condition in removing/adding same node?
- Should we submit empty log after a new leader elected?
- Allow easy build without coverage symbols and AddressSanitizer
- Errors `undefined reference to raft_new()` and `undefined reference to raft_add_node(void**, void*, int, int)` HOT 1
- leader election without log involved? HOT 8
- disk write and leader timeout HOT 4
- Documents are old HOT 5
- Add PreVote support
- raft_send_appendentries_all logic HOT 1
- Log interface decoupling HOT 5
- Empty AppendEntries requests are sent during non-idle periods
- FSM log entries are applied lazily HOT 1
- Leader goes into infinite send_snapshot loop HOT 4
- Meaning of entry_idx in log_offer
- log_get_from_idx not including entries that have wrapped around? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raft.