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

dgraph-io / badger / 2957 / 2
61%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions-eb8e6b6abe
DEFAULT BRANCH: main
Ran 10 Oct 2019 10:29AM UTC
Files 39
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

10 Oct 2019 10:11AM UTC coverage: 77.436% (-0.03%) from 77.465%
2957.2

push

travis-ci

web-flow
<a href="https://github.com/dgraph-io/badger/commit/<a class=hub.com/dgraph-io/badger/commit/bcf8b972e5a27ed2406e3061902eff5cec4966ab">bcf8b972e<a href="https://github.com/dgraph-io/badger/commit/bcf8b972e5a27ed2406e3061902eff5cec4966ab">&quot;&gt;Flush vlog buffer if it grows beyond threshold (#1067)

The OOM happens when we trying to flush write batch.
When we insert data into a transaction, we calculate the size
of the transaction by using the following function
https://github.com/dgraph-io/badger/blob/&lt;/a&gt;&lt;a class=&quot;double-link&quot; href=&quot;https://github.com/dgraph-io/badger/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/dgraph-io/badger/commit/<a class=hub.com/dgraph-io/badger/commit/b20e8b6e8b742236f4a88f7c0cead2d64118a416">b20e8b6e8">b20e8b6e8</a><a href="https://github.com/dgraph-io/badger/commit/bcf8b972e5a27ed2406e3061902eff5cec4966ab">/txn.go#L295-L300
which uses `estimateSize` function
https://github.com/dgraph-io/badger/blob/b20e8b6e8b742236f4a88f7c0cead2d64118a416/structs.go#L134-L139

For a key size of 4 and a value size of 1 MB, the `estimateSize`
function would return 4 + 12 + 2 = 18 byte which is valid in case
of SSTs but not for a vlog file. The entry size for vlog would be
around 1 MB and when all such entries are packed into a single
request for vlog, the bytes.buffer in vlog crashes with OOM error.
This commit fixes it.</a>

6421 of 8292 relevant lines covered (77.44%)

63504.2 hits per line

Source Files on job 2957.2
  • Tree
  • List 0
  • Changed 25
  • Source Changed 1
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2584
  • Travis Job 2957.2
  • bcf8b972 on github
  • Prev Job for on master (#2949.1)
  • Next Job for on master (#2973.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