Comments (5)
Hi @sezaru ,
Thanks for reporting this. Compaction seems indeed to be related to your issue. One question: what version of CubDB are you using? I added a couple of improvements to compaction recently, in particular to avoid crashing the main process if compaction crashes.
It does make sense to stop automatic compaction when backfilling data, and trigger it manually when done (or re-enabling auto compaction), but that said if compaction crashes the main process it should definitely be considered a bug.
from cubdb.
I'm using the latest one, 1.0.0-rc.3.
from cubdb.
Ok thanks, I’ll have a look into it. At a glance it looks like the problem is due to two compaction operations running concurrently, but I need to investigate a bit.
from cubdb.
Hi @sezaru ,
Thanks again for reporting this. I found the issue (a subtle race condition during compaction), and #22 should have fixed it, I just merged it and created a new release (1.0.0-rc.4
). It would be awesome if you could upgrade and let me know if you still experience the issue after this fix.
After the fix, compaction should not crash in the ways you observed, even during heavy write load. That said, if you can predict when you will have heavy write load (for example during a manual data fill), it's more efficient to temporarily disable auto-compaction, and run a manual compaction after the writes instead.
from cubdb.
I am closing this issue, as I am very confident that #22 fixed it, but feel free to comment if you find that your issue still occurs with the new release, and I will reopen this if necessary.
from cubdb.
Related Issues (20)
- cubdb crashes during update HOT 8
- CubDB 0.17.0 crash under load {:error, :enoent} HOT 4
- Errant files in db folder crash application permanently HOT 2
- Allow different serialization mechanisms via plug-ins
- Export/Import HOT 3
- Sort order for select? HOT 4
- How to remove all records in a database? HOT 4
- Compacting DB hangs indefinitely when done manually HOT 7
- Feature Request: `CubDB.number_of_writes/1` HOT 4
- A small doc spell mistake HOT 2
- Running out of disk space HOT 2
- Re-opening a file fails when it was closed during compaction HOT 2
- Support wildcard matching HOT 4
- Better error messages HOT 1
- Disk usage increase after moving data HOT 9
- How to select only keys without values? HOT 5
- last entry select doesn't working HOT 1
- Bug: Error on CubDB startup HOT 1
- How to sort uuid or string? HOT 8
- NoSQLite: A Missed Opportunity?
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 cubdb.