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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 04 Oct 2018 02:04AM CUT
Jobs 1
Files 0
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

04 Oct 2018 01:58AM CUT coverage: 80.379% (-0.09%) from 80.469%
1646

push

travis-ci

web-flow
Fix a rare edge case for value log truncate (#602)

In a specific scenario, where a FS truncates the value log entries perfectly so that a txn's FIN entry is lost, while the rest of the transaction is not; AND this is the first transaction in the system; Badger can skip truncating this transaction on the first Replay (run when Badger is Open). But, will truncate after it has a few valid transactions. The reason is that when there's only one invalid txn, the valid offset of file becomes zero. It is hard to differentiate between a valid offset of zero, v/s an uninitialized offset.

To fix this, we use the file size as a guide. If the file size is greater than the valid offset, we would truncate the file. This interferes with value log GC (and how we grow a value log file to double it's size due to how Windows treats mmapped files). So, we move the truncate logic to within replay function, and out of iterate, so it does not interfere with the functionality of value log GC.

Also, move memory expensive tests to manual mode, and the tests write to disk instead of tmpfs.

Fixes #592 .

4502 of 5601 relevant lines covered (80.38%)

203179.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1646.1 04 Oct 2018 02:04AM CUT 0
80.38
Travis Job 1646.1
Source Files on build 1646
  • List 0
  • Changed 14
  • Source Changed 1
  • Coverage Changed 14
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
  • Back to Repo
  • Travis Build #1646
  • da4f1dcc on github
  • Prev Build on master (#1640)
  • Next Build on master (#1647)
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

© 2025 Coveralls, Inc