Comments (1)
It should describe what can happen in the event of an IO error
bbolt calls fsync
after each transaction to persist changes on disk. If there is any error while writing data, transaction is rolled back and the error is returned to user. This behavior is documented on README:
Lines 903 to 910 in 160cd29
It should explain why Bolt doesn't catch the signal for you (there are many good reasons)
SIGSEGV or SIGBUS signals are raised when the process tries to access protected or invalid memory address. These usually are result of database corruption as bbolt uses unsafe package and does pointer arithmetic to access parts of mmaped file. However, in nspcc-dev/neofs-node#2107 case, it makes sense to get SIGBUS because HDD was removed and mmaped region is no longer valid. bbolt should return a proper error here instead of panicking and crashing the whole process. Related #447 I've seen in nspcc-dev/neofs-node#2115 there is attempt to handle this by calling debug.SetPanicOnFault
inside transactions. We could move this logic into bbolt.
from bbolt.
Related Issues (20)
- Branch page items link to already released pages HOT 19
- Add the zvart project to readme HOT 4
- Why Bucket.Root() is exposed? HOT 1
- Support customizing the rebalance threshold HOT 11
- bench: read: read seq: iter mismatch HOT 8
- Improve the workflow to check goimport items HOT 2
- [1.3] Support injecting failpoints to mimic syscall errors HOT 4
- Flaky `testDB_Close_PendingTx` HOT 4
- panic: invalid freelist page: 0, page type is unknown<00> HOT 14
- Remove panics in the library code HOT 5
- Codecov integration is broken
- bbolt master broke API compatibility HOT 9
- Getting nil pointer deference in concurrent transactions HOT 13
- Calling `tx.Bucket(name)` creates a new bucket if doesn't exist HOT 2
- Migrate all commands to cobra style commands HOT 14
- doc query re README.md HOT 3
- Introduce stale bot HOT 2
- Adding checksum to each page HOT 6
- Create more labels HOT 12
- Add logger to bbolt HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbolt.