Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Nov 13, 2017

(bitcoin-core/leveldb-subtree#15 should go in first, but filing it here for review/visibility/easy testing, do not merge)

When a leveldb corruption happens, report the filename of the file where corruptions happens.
This will aid in diagnosing database corruption issues.

Adds a GetName() to all the environment file classes to make it possible to report a filename downstream.

Example:

2017-11-13 09:35:25 LevelDB read failure: Corruption: block checksum mismatch: /.../.bitcoin/regtest/blocks/index/000042.ldb

(travis is failing due to subtree merge, which is correct)

When a corruption happens, report the filename of the file where corruptions happens.
This will aid in diagnosing database corruption issues.

Adds a GetName() to all the environment file classes to make it possible
to report a filename downstream.
@laanwj laanwj force-pushed the 2017_11_leveldb_report_errors branch from a737475 to 47bc05c Compare November 13, 2017 09:42
@meshcollider
Copy link
Contributor

Big concept ACK, from IRC messages

@jonasschnelli
Copy link
Contributor

Nice!
Concept ACK

@jtimon
Copy link
Contributor

jtimon commented Nov 16, 2017

Concept ACK

@laanwj
Copy link
Member Author

laanwj commented Nov 30, 2017

I've merged this upstream, so this will come back to the bitcoin repository eventually, after the next tree update. Closing.

@laanwj laanwj closed this Nov 30, 2017
@maflcko maflcko mentioned this pull request Feb 16, 2018
sebrandon1 pushed a commit to sebrandon1/bitcoin that referenced this pull request Feb 22, 2018
835a21b Squashed 'src/leveldb/' changes from c521b3ac65..64052c76c5 (MarcoFalke)

Pull request description:

  Pull in changes from bitcoin#11674 (comment).

  Merges cleanly into master and 0.16 branch.

Tree-SHA512: 819c042c0dfac8dc3078fc182c1e22d4a85b343967475d3389be5b5b056361114d8c9892437cd1dc4b45808c27880c0e166e047afc2c2bd2bbc33e55336a8c33
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 13, 2019
Summary:
Pull in changes from bitcoin/bitcoin#11674 (comment).

Backport of Bitcoin Core PR12451
bitcoin/bitcoin#12451

Test Plan:
```
make check
```

Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4004
jonspock pushed a commit to jonspock/devault that referenced this pull request Dec 22, 2019
Summary:
Pull in changes from bitcoin/bitcoin#11674 (comment).

Backport of Bitcoin Core PR12451
bitcoin/bitcoin#12451

Test Plan:
```
make check
```

Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4004
proteanx pushed a commit to devaultcrypto/devault that referenced this pull request Dec 23, 2019
Summary:
Pull in changes from bitcoin/bitcoin#11674 (comment).

Backport of Bitcoin Core PR12451
bitcoin/bitcoin#12451

Test Plan:
```
make check
```

Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4004
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants