• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / graft / 47
91%
master: 91%

Build:
Build:
LAST BUILD BRANCH: dependencies-updates
DEFAULT BRANCH: master
Ran 07 Jul 2017 09:42PM UTC
Jobs 1
Files 7
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
47

push

travis-ci

tylertreat
Add external state support

Add support for external state (log) to influence leader voting. This,
in effect, implements lastLogIndex and lastLogTerm sent on RequestVote
RPCs from the Raft paper. This works by exposing two callbacks: one that
calls into the user on RequestVote to get the candidate's state and one
that calls into the user upon receiving a RequestVote to determine if a
vote should be granted based on comparing the logs.

From Raft:
1. Reply false if term < currentTerm (§5.1)
2. If votedFor is null or candidateId, and candidate’s log is at
least as up-to-date as receiver’s log, grant vote (§5.2, §5.4)

748 of 823 relevant lines covered (90.89%)

113.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47.1 07 Jul 2017 09:42PM UTC 0
90.89
Travis Job 47.1
Source Files on build 47
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #47
  • 191f6bef on github
  • Next Build on log_state (#48)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc