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

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

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

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

Source Files on job 1689.1
  • Tree
  • List 0
  • Changed 15
  • Source Changed 2
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1577
  • Travis Job 1689.1
  • 1d37a10d on github
  • Prev Job for on master (#1679.1)
  • Next Job for on master (#1691.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