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

ipfs / ipfs-cluster / 1004
75%
master: 65%

Build:
Build:
LAST BUILD BRANCH: feat/expvar
DEFAULT BRANCH: master
Ran 13 Nov 2017 05:49PM UTC
Jobs 1
Files 31
Run time 4s
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
1004

push

travis-ci

hsanjuan
Raft: do not ever remove state, rename it and leave it around

This commit changes the way that consensus.Clean() works. Before
it deleted the whole data folder. Now it renames it as <name>.old.0
and leaves it. When Clean() is called again, it renames <name>.old.0
as <name>.old.1, and the actual data becomes <name>.old.0. Higher number
means older. The number of backups is fixed to 5. When 5 backups exists
and a new one comes up again, the last one is discarded.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>

44 of 44 new or added lines in 2 files covered. (100.0%)

3644 of 4869 relevant lines covered (74.84%)

181.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
100.0
consensus/raft/data_helper.go
8
100.0
consensus/raft/raft.go
Jobs
ID Job ID Ran Files Coverage
1 1004.1 13 Nov 2017 05:49PM UTC 0
74.84
Travis Job 1004.1
Source Files on build 1004
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1004
  • 1a06baeb on github
  • Next Build on feat/raft-state-backups (#1011)
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