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

dgraph-io / badger / 1689
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 25 Oct 2018 10:18PM UTC
Jobs 1
Files 28
Run time 5s
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

25 Oct 2018 10:11PM UTC coverage: 80.131% (+0.3%) from 79.806%
1689

push

travis-ci

web-flow
Bug Fix: Truncate of penultimate log files (#616)

Value log files minus the most recent log one, were being opened with read-only permissions. If the value head pointer was pointing to them, and one of them had a file system corruption issue, where they missed their bits, it would cause Badger to try to truncate them. Being read-only, this would cause an "invalid argument" to be returned by the Go file.truncate call. This error caused confusion before, but essentially, it was being returned because the files were read-only, and therefore couldn't be truncated (EINVAL).

This PR fixes that by refactoring how value log is opened. It iterates over the log files, and if they need to be replayed, it would open them in RW mode; allowing truncation to happen (this also fixes the issue where if the file is mmapped, it won't be truncated). Then, it would open them in the mode they can be consumed by Badger.

Fixes #613 .

4638 of 5788 relevant lines covered (80.13%)

219146.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1689.1 25 Oct 2018 10:18PM UTC 0
80.13
Travis Job 1689.1
Source Files on build 1689
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1689
  • 1d37a10d on github
  • Prev Build on master (#1679)
  • Next Build on master (#1691)
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