Skip to content

Badger open data directory without any error with vlog file what contains broken value data #1049

@nordicdyno

Description

@nordicdyno

What version of Go are you using (go version)?

$ go version
1.13

What version of Badger are you using?

  • v1.6
  • v2.0.0-rc2

Does this issue reproduce with the latest master?

yes

What are the hardware specifications of the machine (RAM, OS, Disk)?

MacBook Pro (15-inch, 2018), 2,2 GHz i7, 16Gb, APPLE SSD AP0256M

What did you do?

I've spoiled data in vlog file in data directory (emulate real world issues with hardware) and badger just starts with this directory with any error.

What did you expect to see?

Error on database open.

What did you see instead?

Badger works without any error if spoiled data are in values body.

Extra

More info and reproducible tests are here:
https://github.com/nordicdyno/badger-spoiler

I'm not sure, but probably it's related to #601

Metadata

Metadata

Assignees

Labels

area/data-lossIssues related to data loss or corruption.kind/enhancementSomething could be better.priority/P1Serious issue that requires eventual attention (can wait a bit)status/acceptedWe accept to investigate or work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions