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

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

Build:
Build:
LAST BUILD BRANCH: dependencies-updates
DEFAULT BRANCH: master
Ran 07 Jul 2017 09:42PM UTC
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

07 Jul 2017 09:33PM UTC coverage: 90.887%. First build
47.1

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

Source Files on job 47.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 47
  • Travis Job 47.1
  • 191f6bef on github
  • Next Job for on log_state (#48.1)
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